Skip to content

Commit

Permalink
Add copy commands to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendPeter committed Jan 13, 2024
1 parent 4252256 commit 97dc501
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN npm ci --only=production
# Run "npm build" steps after "npm ci" to take advantage of caching.
WORKDIR /usr/src/app
COPY --chown=node:node domain_model domain_model
COPY --chown=node:node shared shared
COPY --chown=node:node package*.json ./
WORKDIR /usr/src/app/frontend
COPY --chown=node:node frontend .
Expand All @@ -48,6 +49,7 @@ ENV NODE_ENV production
COPY --from=build /usr/bin/dumb-init /usr/bin/dumb-init
USER node
WORKDIR /usr/src/app
COPY --chown=node:node --from=build /usr/src/app/shared shared
COPY --chown=node:node --from=build /usr/src/app/domain_model domain_model
COPY --chown=node:node --from=build /usr/src/app/frontend/build /usr/src/app/frontend/build
COPY --chown=node:node --from=build /usr/src/app/backend/build /usr/src/app/backend/build
Expand Down

0 comments on commit 97dc501

Please sign in to comment.