ARG IMAGE_PREFIX=git.0x7f.app/woj ARG VERSION=latest # Base image FROM ${IMAGE_PREFIX}/woj-server-base:${VERSION} AS base # UI Builder FROM ${IMAGE_PREFIX}/woj-ui:${VERSION} AS ui RUN find /app -type f -name "*.map" -delete # Main image FROM docker.io/library/alpine WORKDIR /app RUN apk --no-cache add tzdata ca-certificates bash su-exec COPY --from=base /builder/config.docker.yaml /app COPY --from=base /builder/docker-entrypoint.sh /app COPY --from=base /builder/woj /app COPY --from=ui /app /app/resource/frontend ENTRYPOINT ["/app/docker-entrypoint.sh"]