chore: small changes dockerfile

This commit is contained in:
dec0dOS 2023-10-04 21:56:47 +01:00
parent 26cb077a70
commit a731b8b3af
2 changed files with 3 additions and 1 deletions

View file

@ -14,4 +14,5 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
.yarn/cache .yarn/cache
db.json
backend/data/db.json backend/data/db.json

View file

@ -17,9 +17,10 @@ FROM node:lts-alpine
WORKDIR /app/frontend/build WORKDIR /app/frontend/build
COPY --link --from=frontend-build /app/frontend/build /app/frontend/build/ COPY --link --from=frontend-build /app/frontend/build /app/frontend/build/
WORKDIR /app/backend WORKDIR /app/
COPY --link package.json yarn.lock* .yarnrc.yml ./ COPY --link package.json yarn.lock* .yarnrc.yml ./
COPY --link .yarn/ ./.yarn COPY --link .yarn/ ./.yarn
WORKDIR /app/backend
COPY --link ./backend/package.json /app/backend COPY --link ./backend/package.json /app/backend
RUN yarn workspaces focus --production backend && yarn cache clean RUN yarn workspaces focus --production backend && yarn cache clean