1
0
Fork 0
forked from Kispi/Core
HGOE-SaS/Dockerfile

25 lines
390 B
Docker
Raw Normal View History

## Build
FROM golang:1.20-buster as build
2022-07-12 18:44:26 +00:00
WORKDIR /app
2022-07-12 18:44:26 +00:00
COPY server/go.mod ./
COPY server/go.sum ./
COPY server/pkg ./pkg
RUN go mod download
2022-07-12 18:44:26 +00:00
COPY server/*.go ./
RUN CGO_ENABLED=1 go build -o /server
## Deploy
FROM gcr.io/distroless/base-debian10
WORKDIR /
COPY --from=build /server /server
COPY webapp/dist /webapp
EXPOSE 8090
ENTRYPOINT ["/server", "serve", "--http=0.0.0.0:8090"]