From b5335bc9bc280d3b6dbab40bc56582e825bd5157 Mon Sep 17 00:00:00 2001 From: ismail Date: Tue, 12 May 2026 00:27:35 +0300 Subject: [PATCH] fix: add Node.js CSS build step to Dockerfile, fix Caddyfile for local testing --- Caddyfile.test | 2 +- Dockerfile | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Caddyfile.test b/Caddyfile.test index e4d181e..cd578e4 100644 --- a/Caddyfile.test +++ b/Caddyfile.test @@ -1,4 +1,4 @@ -px360test2.tenhal.sa { +http://:80, http://px360test2.tenhal.sa { encode gzip handle_path /static/* { diff --git a/Dockerfile b/Dockerfile index 00aba74..935c16f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,13 @@ RUN pip install --upgrade pip setuptools wheel && \ COPY . . +RUN apt-get update && apt-get install -y --no-install-recommends \ + nodejs \ + npm \ + && rm -rf /var/lib/apt/lists/* + +RUN npm install && npm run build:css + RUN python manage.py collectstatic --noinput || true