identity-service/Dockerfile.target
Piotr Biernat 78418b230d
All checks were successful
continuous-integration/drone/push Build is passing
fixes
2022-12-16 01:01:54 +01:00

30 lines
653 B
Docker

# Builder
ARG BUILDER_IMAGE
FROM ${BUILDER_IMAGE} AS builder
# Destination image - server
# FROM gcr.io/distroless/base-debian10
FROM alpine:3.17
ARG SVC_NAME
ARG SVC_VER
ARG BIN_OUTPUT
ARG BUILD_TIME
LABEL dev.egommerce.image.author="Piotr Biernat"
LABEL dev.egommerce.image.vendor="Egommerce"
LABEL dev.egommerce.image.service=${SVC_NAME}
LABEL dev.egommerce.image.version=${SVC_VER}
LABEL dev.egommerce.image.build_time=${BUILD_TIME}
WORKDIR /
COPY --from=builder $BIN_OUTPUT /app
COPY .env.dist /.env
COPY ./bin/entrypoint.sh ./bin/wait-for-it.sh /
RUN chmod 755 /entrypoint.sh
EXPOSE 80
CMD ["sh", "-c", "/app"]
ENTRYPOINT ["/entrypoint.sh"]