Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Spit out docker installed revision info

Scott Peshakb11d1fa1a9f3
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index 00a8028c5..44b088c19 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -48,8 +48,8 @@ RUN chmod 0644 /etc/cron.d/wger \
# Set up the application
RUN ln -s /home/wger/static/CACHE /var/www
USER wger
-ARG GIT_BRANCH=master
-RUN git clone -b ${GIT_BRANCH} https://github.com/wger-project/wger.git /home/wger/src
+RUN git clone -b ${SOURCE_BRANCH:-master} https://github.com/wger-project/wger.git /home/wger/src \
+ && git -C /home/wger/src rev-parse HEAD
WORKDIR /home/wger/src
RUN virtualenv --python python3 /home/wger/venv