ADD alpine-minirootfs-3.17.10-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
ARG BUILD_TIME=20250109202134 |
ARG BIN_OUTPUT=/go/bin/server |
ARG SVC_NAME=catalog-svc |
ARG SVC_VER=dev |
LABEL dev.egommerce.image.author=Piotr Biernat |
LABEL dev.egommerce.image.vendor=Egommerce |
LABEL dev.egommerce.image.service=catalog-svc |
LABEL dev.egommerce.image.version=dev |
LABEL dev.egommerce.image.build_time=20250109202134 |
WORKDIR / |
COPY /go/bin/server /app # buildkit |
COPY /go/bin/migrate /bin/migrate # buildkit |
COPY /go/bin/health /bin/health # buildkit |
COPY .env.docker /.env # buildkit |
COPY ./.app.config / # buildkit |
COPY ./bin /bin # buildkit |
RUN |4 BUILD_TIME=20250109202134 BIN_OUTPUT=/go/bin/server SVC_NAME=catalog-svc SVC_VER=dev /bin/sh -c chmod 755 /bin/entrypoint.sh /bin/migrate.sh # buildkit |
RUN |4 BUILD_TIME=20250109202134 BIN_OUTPUT=/go/bin/server SVC_NAME=catalog-svc SVC_VER=dev /bin/sh -c apk add curl # buildkit |
EXPOSE map[443/tcp:{}] |
ENTRYPOINT ["entrypoint.sh"] |
CMD ["sh" "-c" "/app"] |
HEALTHCHECK &{["CMD-SHELL" "health >/dev/null || exit 1"] "5s" "1s" "0s" "0s" '\x14'} |