basket-service/Dockerfile.target
Piotr Biernat 19e44b60f0
Some checks failed
continuous-integration/drone/push Build is failing
Refactored docker image builder script
2022-11-30 02:07:53 +01:00

23 lines
426 B
Docker

# Builder
ARG BUILDER_IMAGE="git.pbiernat.dev/egommerce/basket-builder:latest"
FROM ${BUILDER_IMAGE} AS builder
# Destination image - server
FROM gcr.io/distroless/base-debian10
ARG BIN_OUTPUT
ARG SVC_NAME
ARG SVC_VER
LABEL author="Piotr Biernat"
LABEL vendor="egommerce"
LABEL service=${SVC_NAME}
LABEL version=${SVC_VER}
WORKDIR /
COPY --from=builder $BIN_OUTPUT /app
COPY .env.dist /.env
EXPOSE 80
ENTRYPOINT ["/app"]