Skip to content

Commit

Permalink
Docker: Add env variables that set the version info in the Docker con…
Browse files Browse the repository at this point in the history
…tainer
  • Loading branch information
quartje committed Jul 26, 2024
1 parent 8307571 commit f783110
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM ghcr.io/openconext/openconext-basecontainers/php72-apache2:latest
ARG APP_VERSION
ARG GIT_SHA
ARG GIT_COMMIT_TIME
ENV OPENCONEXT_APP_VERSION=${APP_VERSION}
ENV OPENCONEXT_GIT_SHA=${GIT_SHA}
ENV OPENCONEXT_COMMIT_DATE=${GIT_COMMIT_TIME}

COPY *.tar.bz2 /tmp/
RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \
rm -rf /tmp/*.tar.bz2
Expand Down

0 comments on commit f783110

Please sign in to comment.