diff --git a/Dockerfiles/Dockerfile.frontend b/Dockerfiles/Dockerfile.frontend index ab04b319a..ba43e3f12 100644 --- a/Dockerfiles/Dockerfile.frontend +++ b/Dockerfiles/Dockerfile.frontend @@ -1,8 +1,14 @@ -FROM node:20-bookworm +FROM node:20-bookworm as build ENV REACT_APP_PROXY=http://localhost:9081 ENV REACT_APP_NOMOCK=on WORKDIR /web/frontend COPY ../web/frontend . -RUN npm install +RUN npm ci +RUN npm run build + +FROM node:20-bookworm as app + +COPY --from=build /web/frontend/ . + ENTRYPOINT ["npm", "start"]