Skip to content

Commit

Permalink
chore(server): fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Sep 19, 2024
1 parent 93dcc1f commit 2b2c5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app/
RUN npm install -g pnpm@8
COPY common /tmp/common
COPY server /tmp/server
RUN cd /tmp/server && pnpm i --frozen-lockfile && npm run build && mv /tmp/server/app / && mv /tmp/server/node_modules /app/ && rm -rf /tmp/{common,server}
RUN cd /tmp/server && pnpm i --frozen-lockfile && npm run build && mv /tmp/server/app / && mv /tmp/server/node_modules /app/ && rm -rf /tmp/common /tmp/server

ENV PATH="/app/node_modules/pm2/bin:${PATH}"
CMD npm run deploy:foreground

0 comments on commit 2b2c5c3

Please sign in to comment.