Skip to content

Commit

Permalink
move args to where they belong
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Jun 6, 2023
1 parent ea3211a commit c174b11
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions services/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,10 @@ RUN --mount=type=cache,mode=0777,target=/root/.cache/pip \
#
FROM base as production

ARG BUILD_DATE
ARG VCS_URL
ARG VCS_REF
ENV SC_BUILD_TARGET=production \
SC_BOOT_MODE=production

ENV PYTHONOPTIMIZE=TRUE

WORKDIR /home/scu

Expand All @@ -166,13 +167,15 @@ HEALTHCHECK --interval=30s \
CMD ["python3", "/home/scu/services/web/server/docker/healthcheck.py", "http://localhost:8080/v0/health"]


ENV SC_BUILD_TARGET=production \
SC_BOOT_MODE=production \
SC_BUILD_DATE=${BUILD_DATE} \
ARG BUILD_DATE
ARG VCS_URL
ARG VCS_REF

ENV SC_BUILD_DATE=${BUILD_DATE} \
SC_VCS_URL=${VCS_URL} \
SC_VCS_REF=${VCS_REF}

ENV PYTHONOPTIMIZE=TRUE


ENTRYPOINT [ "services/web/server/docker/entrypoint.sh" ]
CMD ["services/web/server/docker/boot.sh"]
Expand Down

0 comments on commit c174b11

Please sign in to comment.