Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use the sass binary from npm

Roland Geiderb38d4bcd0e70
diff --git a/extras/docker/demo/Dockerfile b/extras/docker/demo/Dockerfile
index 3e2036174..f9ae35c6a 100644
--- a/extras/docker/demo/Dockerfile
+++ b/extras/docker/demo/Dockerfile
@@ -33,10 +33,9 @@ RUN wget -O- https://deb.nodesource.com/setup_22.x | bash - \
libpq-dev \
rustc \
cargo \
- sassc \
nodejs \
- && ln -s /usr/bin/sassc /usr/bin/sass \
- && rm -rf /var/lib/apt/lists/*
+ && rm -rf /var/lib/apt/lists/* \
+ && npm install -g sass
# Build the necessary python wheels
WORKDIR /home/wger/src
diff --git a/extras/docker/production/Dockerfile b/extras/docker/production/Dockerfile
index 2102656a8..9eadb72e5 100644
--- a/extras/docker/production/Dockerfile
+++ b/extras/docker/production/Dockerfile
@@ -27,7 +27,6 @@ RUN wget -O- https://deb.nodesource.com/setup_22.x | bash - \
libwebp-dev \
libpq-dev \
rustc \
- sassc \
cargo \
unzip \
nodejs \
@@ -52,7 +51,7 @@ RUN pip3 wheel \
--no-cache-dir \
--wheel-dir /wheels \
--group docker . \
- && ln -s /usr/bin/sassc /usr/bin/sass
+ && npm install -g sass
# Fetch the JS and CSS files.
# For the react-components npm package, we fetch it manually, extract it and move