Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Allow setting git branch via build arg

Scott Peshak5d2aff6de9bc
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index 19fd46b9b..a300613e4 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -46,7 +46,8 @@ RUN chmod 0644 /etc/cron.d/wger \
# Set up the application
USER wger
-RUN git clone https://github.com/wger-project/wger.git /home/wger/src
+ARG GIT_BRANCH=master
+RUN git clone -b ${GIT_BRANCH} https://github.com/wger-project/wger.git /home/wger/src
WORKDIR /home/wger/src
RUN virtualenv --python python3 /home/wger/venv