Skip to content

Commit

Permalink
fix: docker image workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodds committed Nov 7, 2022
1 parent 32badd0 commit b2d1bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN pnpm prune --prod

FROM node:16.18-bullseye As production

WORKDIR /home/node/app/backend
WORKDIR /home/node/app
COPY --chown=node:node --from=build /app/apps/backend/dist ./dist
COPY --chown=node:node --from=build /app/apps/backend/node_modules ./node_modules

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN pnpm -F frontend build

FROM node:16.18-bullseye As production

WORKDIR /home/node/app/frontend
WORKDIR /home/node/app
COPY --chown=node:node --from=build /app/apps/frontend/.output ./.output

USER node
Expand Down

0 comments on commit b2d1bd3

Please sign in to comment.