diff --git a/docker/Dockerfile b/docker/Dockerfile index 05941cf39..a61b1a88f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -5,8 +5,12 @@ ARG PYTHON_VERSION=3.11 # Build frontend FROM node:lts-alpine${ALPINE_VERSION} as front-build-stage WORKDIR /front + +COPY ./frontend/package*.json ./ +RUN npm ci + COPY ./frontend ./ -RUN npm install && npm run build +RUN npm run build # Build backend environment FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} AS backend-build