docker frontend cache doesn't depend on backend

This commit is contained in:
2023-01-15 13:11:25 +01:00
parent a2cdbdef7f
commit 593e2181f2
6 changed files with 6 additions and 5 deletions

View File

@@ -4,7 +4,8 @@ FROM node:16-bullseye as frontbuild
WORKDIR /usr/src/app/frontend
COPY ./frontend/package*.json ./
RUN npm ci --only=production
COPY ./ ../
COPY ./frontend .
COPY ./src/shared ../src/shared
RUN npm run build && bash -O extglob -c 'rm -rfv !("dist")'
WORKDIR ../
RUN bash -O extglob -c 'rm -rfv !("frontend")'