diff --git a/deploy/Dockerfile b/deploy/Dockerfile index ca47052f..0e6486a5 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -1,3 +1,10 @@ +FROM node:24-alpine@sha256:50c8e8ca1d27439048670df5883f32d57cf81cff6233222c893fd0d9884cbd81 AS frontend +WORKDIR /frontend +COPY package.json package-lock.json ./ +RUN npm ci --ignore-scripts --no-audit --no-fund \ + && test -s node_modules/bootstrap/dist/css/bootstrap.min.css \ + && test -s node_modules/bootstrap/dist/js/bootstrap.bundle.min.js + FROM python:3.13-slim-trixie@sha256:9d2e5553305c7c7b0097999bb17187c69b921ccd6bc9d40e4bb5ebe652c00285 AS app ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 DEBUG=0 \ ALLOWED_HOSTS=testing.nc3.lu PKGVER=GitHub-0-gmain @@ -24,4 +31,5 @@ ENTRYPOINT ["/app/start.sh"] FROM nginx:stable-alpine@sha256:dc5069ad14f19660b141b21236140b91656bf89bbc3e2417c70ae650cd66104c AS proxy COPY --from=app /app/static/ /srv/testing-static/ +COPY --from=frontend /frontend/node_modules/ /srv/testing-static/npm_components/ COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf