File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ RUN CPUCOUNT=1 pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt
3434
3535
3636FROM build AS collectstatic
37+ ARG COLLECT_DJANGO_DEBUG_TOOLBAR_STATIC=false
3738RUN apk add nodejs npm
3839RUN npm install -g yarn --force
3940
5253 yarn
5354COPY manage.py ./
5455COPY dojo/ ./dojo/
55- RUN env DD_SECRET_KEY='.' python3 manage.py collectstatic --noinput && true
56+ RUN env DD_SECRET_KEY='.' DD_DJANGO_DEBUG_TOOLBAR_ENABLED=${COLLECT_DJANGO_DEBUG_TOOLBAR_STATIC} python3 manage.py collectstatic --noinput --verbosity=2 && true
5657
5758FROM nginx:1.29.1-alpine3.22@sha256:42a516af16b852e33b7682d5ef8acbd5d13fe08fecadc7ed98605ba5e3b26ab8
5859ARG uid=1001
Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ services:
3434 DD_ADMIN_USER : " ${DD_ADMIN_USER:-admin}"
3535 DD_ADMIN_PASSWORD : " ${DD_ADMIN_PASSWORD:-admin}"
3636 nginx :
37+ build :
38+ args :
39+ COLLECT_DJANGO_DEBUG_TOOLBAR_STATIC : ' True'
40+ environment :
41+ DD_DJANGO_DEBUG_TOOLBAR_ENABLED : ' True'
3742 volumes :
3843 - ' ./dojo/static/dojo:/usr/share/nginx/html/static/dojo'
3944 postgres :
You can’t perform that action at this time.
0 commit comments