Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Symlink CACHE directory

Scott Peshakc9da93d4ac04
diff --git a/extras/docker/apache/Dockerfile b/extras/docker/apache/Dockerfile
index 4a467e8bb..b04467304 100644
--- a/extras/docker/apache/Dockerfile
+++ b/extras/docker/apache/Dockerfile
@@ -44,6 +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
USER wger
ARG GIT_BRANCH=master
RUN git clone -b ${GIT_BRANCH} https://github.com/wger-project/wger.git /home/wger/src
@@ -66,8 +67,7 @@ RUN . /home/wger/venv/bin/activate \
# can access them.
RUN chmod o+w -R ~/db/ \
&& . /home/wger/venv/bin/activate \
- && mkdir ~/static \
- && mkdir ~/media \
+ && mkdir -p ~/static/CACHE ~/media \
&& sed -i "/^MEDIA_ROOT/c\MEDIA_ROOT='\/home\/wger\/media'" settings.py \
&& python manage.py download-exercise-images \
&& chmod -R o+w ~/media \