Fixes
This commit is contained in:
@@ -4,27 +4,30 @@ FROM ${BUILDER_IMAGE} AS builder
|
||||
|
||||
# Destination image - server
|
||||
# FROM gcr.io/distroless/base-debian10
|
||||
FROM alpine:3.17
|
||||
FROM alpine:3
|
||||
|
||||
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}
|
||||
LABEL dev.egosport.image.author="Piotr Biernat"
|
||||
LABEL dev.egosport.image.vendor="Egosport"
|
||||
LABEL dev.egosport.image.service=${SVC_NAME}
|
||||
LABEL dev.egosport.image.version=${SVC_VER}
|
||||
LABEL dev.egosport.image.build_time=${BUILD_TIME}
|
||||
|
||||
WORKDIR /
|
||||
COPY --from=builder $BIN_OUTPUT /app
|
||||
COPY --from=builder /go/bin/migrate /bin/go_migrate
|
||||
COPY --from=builder /go/bin/migrate /bin/migrate
|
||||
COPY --from=builder /go/bin/health /bin/health
|
||||
COPY .env.dist /.env
|
||||
COPY ./bin /bin
|
||||
RUN chmod 755 /bin/entrypoint.sh /bin/migrate.sh
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["sh", "-c", "/app"]
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
CMD ["sh", "-c", "/app"]
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=1s --retries=20 CMD health >/dev/null || exit 1
|
||||
|
||||
Reference in New Issue
Block a user