Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Also copy the css map file

Roland Geidera3b0b96b2999
diff --git a/extras/docker/demo/Dockerfile b/extras/docker/demo/Dockerfile
index 554971e0a..3e2036174 100644
--- a/extras/docker/demo/Dockerfile
+++ b/extras/docker/demo/Dockerfile
@@ -93,6 +93,7 @@ RUN chmod 0644 /etc/cron.d/wger \
COPY --chown=wger:www-data . /home/wger/src
COPY --chown=wger:wger --from=builder /home/wger/src/node_modules /home/wger/src/node_modules
COPY --chown=wger:wger --from=builder /home/wger/src/wger/core/static/bootstrap-compiled.css /home/wger/src/core/static/bootstrap-compiled.css
+COPY --chown=wger:wger --from=builder /home/wger/src/wger/core/static/bootstrap-compiled.css.map /home/wger/src/core/static/bootstrap-compiled.css.map
# Set up the application
RUN ln -s /home/wger/static/CACHE /var/www
diff --git a/extras/docker/production/Dockerfile b/extras/docker/production/Dockerfile
index aeb1cb63e..2102656a8 100644
--- a/extras/docker/production/Dockerfile
+++ b/extras/docker/production/Dockerfile
@@ -88,6 +88,7 @@ EXPOSE 8000
COPY --chown=wger:wger . /home/wger/src
COPY --chown=wger:wger --from=builder /root/src/node_modules /home/wger/src/node_modules
COPY --chown=wger:wger --from=builder /root/src/wger/core/static/bootstrap-compiled.css /home/wger/src/core/static/bootstrap-compiled.css
+COPY --chown=wger:wger --from=builder /root/src/wger/core/static/bootstrap-compiled.css.map /home/wger/src/core/static/bootstrap-compiled.css.map
COPY ${DOCKER_DIR}/settings.py /home/wger/src
COPY ${DOCKER_DIR}/settings.py /tmp/
COPY ${DOCKER_DIR}/entrypoint.sh /home/wger/entrypoint.sh
diff --git a/wger/tasks.py b/wger/tasks.py
index 81a5aa93b..9efa37f12 100644
--- a/wger/tasks.py
+++ b/wger/tasks.py
@@ -97,8 +97,8 @@ def bootstrap(context, settings_path=None, database_path=None, process_static=Tr
# Download JS and CSS libraries
if process_static:
- context.run('yarn install')
- context.run('yarn build:css:sass')
+ context.run('npm install')
+ context.run('npm run build:css:sass')
@task(