Skip to content

Commit 373eff1

Browse files
debugtoolbar: fix for requirements-dev.txt (#13183)
1 parent 937dec7 commit 373eff1

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Dockerfile.nginx-alpine

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ RUN \
2626
&& \
2727
rm -rf /var/cache/apk/* && \
2828
true
29-
COPY requirements.txt ./
29+
COPY requirements.txt requirements-dev.txt ./
3030
# CPUCOUNT=1 is needed, otherwise the wheel for uwsgi won't always be build succesfully
3131
# https://github.com/unbit/uwsgi/issues/1318#issuecomment-542238096
3232
RUN CPUCOUNT=1 pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt
33+
# needed for static files collection, didn't find a way to make this dependant on the COLLECT_DJANGO_DEBUG_TOOLBAR_STATIC argument
34+
RUN CPUCOUNT=1 pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements-dev.txt
3335

3436

3537
FROM build AS collectstatic
@@ -45,6 +47,13 @@ RUN pip3 install \
4547
--find-links=/tmp/wheels \
4648
-r ./requirements.txt
4749

50+
# needed for static files collection, didn't find a way to make this dependant on the COLLECT_DJANGO_DEBUG_TOOLBAR_STATIC argument
51+
RUN pip3 install \
52+
--no-cache-dir \
53+
--no-index \
54+
--find-links=/tmp/wheels \
55+
-r ./requirements-dev.txt
56+
4857
# generate static files
4958
COPY components/ ./components/
5059
RUN \

0 commit comments

Comments
 (0)