Skip to content

Commit

Permalink
dockerfile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jul 1, 2024
1 parent c5a7baf commit f728100
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ RUN yarn install
COPY . .
RUN yarn build

# Step 2: Serve the Vite app using PM2
# Step 2: Serve the Vite app using a static file server
FROM node:20-alpine

WORKDIR /app

COPY --from=builder /app/dist /app

RUN npm install -g pm2 serve

COPY ecosystem.config.js ./
RUN npm install -g serve

EXPOSE 3000

CMD ["pm2-runtime", "start", "ecosystem.config.js"]
CMD ["serve", "-s", ".", "-l", "3000","node", "server.js"]

0 comments on commit f728100

Please sign in to comment.