Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gornication committed Sep 29, 2023
1 parent 8cd07d9 commit 45244d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ COPY --chown=node:node --from=development /usr/src/app/client/node_modules ./cli

RUN apk add --no-cache --virtual .gyp python3 py3-pip make g++

# Install project dependencies before running build commands
RUN npm ci

RUN npm run build
RUN npm run build --prefix=client
# Build the client (React) project
RUN cd client && npm ci && npm run build

ENV NODE_ENV production

Expand Down

0 comments on commit 45244d1

Please sign in to comment.