Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix cache symlink

Scott Peshak19ce20084a65
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index 737c89577..b812d4a56 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -44,8 +44,7 @@ RUN chmod 0644 /etc/cron.d/wger \
&& touch /var/log/cron.log
# Set up the application
-RUN ln -s /home/wger/static/CACHE /var/www \
- && ln -s /home/wger/static/CACHE /home/wger/src
+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
@@ -69,6 +68,7 @@ RUN . /home/wger/venv/bin/activate \
RUN chmod o+w -R ~/db/ \
&& . /home/wger/venv/bin/activate \
&& mkdir -p ~/static/CACHE ~/media \
+ && ln -s /home/wger/static/CACHE /home/wger/src/CACHE \
&& sed -i "/^MEDIA_ROOT/c\MEDIA_ROOT='\/home\/wger\/media'" settings.py \
&& python manage.py download-exercise-images \
&& chmod -R o+w ~/media \