Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix build step

Roland Geider903a2e49b8c7
diff --git a/extras/docker/production/Dockerfile b/extras/docker/production/Dockerfile
index 52a2b76b3..f0feca584 100644
--- a/extras/docker/production/Dockerfile
+++ b/extras/docker/production/Dockerfile
@@ -101,11 +101,14 @@ RUN chmod +x /home/wger/entrypoint.sh \
&& chown wger:wger /home/wger/src
USER wger
+
+# Note: unsetting DJANGO_SETTINGS_MODULE here since we only need django to
+# compile the message files
RUN --mount=type=bind,from=builder,source=/wheels,target=/wheels \
pip3 install --break-system-packages --no-cache-dir --user /wheels/* \
&& pip3 install --break-system-packages --user . \
&& mkdir -p ~/media ~/static ~/beat ~/db \
&& cd wger \
- && django-admin compilemessages
+ && env -u DJANGO_SETTINGS_MODULE django-admin compilemessages
CMD ["/home/wger/entrypoint.sh"]