mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 15:27:49 +01:00
docker frontend cache doesn't depend on backend
This commit is contained in:
@@ -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")'
|
||||
|
||||
Reference in New Issue
Block a user