Passport/Dockerfile

18 lines
316 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
RUN apk add nodejs npm
WORKDIR /source
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs -o /dist ./pkg/cmd/main.go
# 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"]