File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3232RUN 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
3537FROM 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
4958COPY components/ ./components/
5059RUN \
You can’t perform that action at this time.
0 commit comments