Skip to content

Commit f783110

Browse files
committed
Docker: Add env variables that set the version info in the Docker container
1 parent 8307571 commit f783110

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker/Dockerfile.prod

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
FROM ghcr.io/openconext/openconext-basecontainers/php72-apache2:latest
2+
ARG APP_VERSION
3+
ARG GIT_SHA
4+
ARG GIT_COMMIT_TIME
5+
ENV OPENCONEXT_APP_VERSION=${APP_VERSION}
6+
ENV OPENCONEXT_GIT_SHA=${GIT_SHA}
7+
ENV OPENCONEXT_COMMIT_DATE=${GIT_COMMIT_TIME}
8+
29
COPY *.tar.bz2 /tmp/
310
RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \
411
rm -rf /tmp/*.tar.bz2

0 commit comments

Comments
 (0)