Skip to content

Commit

Permalink
Merge pull request #378 from mikefranze/main
Browse files Browse the repository at this point in the history
Adding top level npm package to docker image for npm scripts
  • Loading branch information
mikefranze authored Nov 4, 2023
2 parents 9403cd8 + 53fb7ce commit fa23e2c
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 package*.json ./
WORKDIR /usr/src/app/frontend
COPY --chown=node:node frontend .
ENV REACT_APP_KEYCLOAK_URL https://auth.star.vote:8443/realms/STARVotingDev/protocol/openid-connect
Expand All @@ -43,6 +44,7 @@ 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
COPY --chown=node:node --from=build /usr/src/app/backend/node_modules /usr/src/app/backend/node_modules
COPY --chown=node:node --from=build /usr/src/app/package*.json ./
ENTRYPOINT ["dumb-init", "--"]
CMD ["npm", "run", "start"]
EXPOSE 5000

0 comments on commit fa23e2c

Please sign in to comment.