Skip to content

Commit 674c646

Browse files
debugtoolbar: fix collectstatic
1 parent 24ff59e commit 674c646

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Dockerfile.nginx-alpine

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ RUN CPUCOUNT=1 pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt
3434

3535

3636
FROM build AS collectstatic
37+
ARG COLLECT_DJANGO_DEBUG_TOOLBAR_STATIC=false
3738
RUN apk add nodejs npm
3839
RUN npm install -g yarn --force
3940

@@ -52,7 +53,7 @@ RUN \
5253
yarn
5354
COPY manage.py ./
5455
COPY 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

5758
FROM nginx:1.29.1-alpine3.22@sha256:42a516af16b852e33b7682d5ef8acbd5d13fe08fecadc7ed98605ba5e3b26ab8
5859
ARG uid=1001

docker-compose.override.dev.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)