order-service/Dockerfile.target

24 lines
524 B
Docker
Raw Normal View History

2022-11-30 02:08:59 +01:00
# Builder
ARG BUILDER_IMAGE="git.pbiernat.dev/egommerce/order-builder:latest"
FROM ${BUILDER_IMAGE} AS builder
# Destination image - server
# FROM gcr.io/distroless/base-debian10
FROM alpine:3.17
2022-11-30 02:08:59 +01:00
ARG BIN_OUTPUT
ARG SVC_NAME
ARG SVC_VER
LABEL dev.egommerce.image.author="Piotr Biernat"
2022-12-02 21:56:00 +01:00
LABEL dev.egommerce.image.vendor="Egommerce"
LABEL dev.egommerce.image.service=${SVC_NAME}
LABEL dev.egommerce.image.version=${SVC_VER}
2022-11-30 02:08:59 +01:00
WORKDIR /
COPY --from=builder $BIN_OUTPUT /app
COPY .env.dist /.env
EXPOSE 80
ENTRYPOINT ["/app"]