Passport/Dockerfile

16 lines
288 B
Docker
Raw Normal View History

2024-01-30 10:34:37 +00:00
# Building Backend
2024-04-13 05:48:19 +00:00
FROM golang:alpine as passport-server
2024-01-30 10:34:37 +00:00
WORKDIR /source
COPY . .
2024-06-16 15:21:31 +00:00
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs -o /dist ./pkg/main.go
2024-01-30 10:34:37 +00:00
# Runtime
FROM golang:alpine
2024-04-13 05:48:19 +00:00
COPY --from=passport-server /dist /passport/server
2024-01-30 10:34:37 +00:00
EXPOSE 8444
2024-04-13 05:48:19 +00:00
CMD ["/passport/server"]