diff --git a/Dockerfile_static b/Dockerfile_static index f41bf3b..3c540be 100644 --- a/Dockerfile_static +++ b/Dockerfile_static @@ -1,5 +1,5 @@ # https://cli.vuejs.org/guide/deployment.html#docker-nginx -FROM nikolaik/python-nodejs:python3.11-nodejs18 as build-stage +FROM nikolaik/python-nodejs:python3.11-nodejs18 AS build-stage COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt @@ -19,7 +19,7 @@ RUN npx vue-cli-service build WORKDIR /workdir RUN python manage.py collectstatic --noinput -v2 -FROM nginxinc/nginx-unprivileged:latest as production-stage +FROM nginxinc/nginx-unprivileged:latest AS production-stage USER root COPY --from=build-stage --chown=nginx:root /workdir/frontend/dist /usr/share/nginx/html COPY --from=build-stage --chown=nginx:root /workdir/static /usr/share/nginx/html/static