diff --git a/docker/Dockerfile b/docker/Dockerfile index 81d53758c..2f7c4842e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,8 +1,12 @@ # Build frontend FROM node:lts-alpine 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 # Setup frontend and backend FROM nginx:1.27.0-alpine3.19-slim as production-stage