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