Skip to content

Commit

Permalink
temp : 임시
Browse files Browse the repository at this point in the history
  • Loading branch information
kangjuhyup committed Jan 22, 2025
1 parent 4bcaa93 commit 7628290
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions packages/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ FROM ghcr.io/kangjuhyup/invite-service/builder:latest AS builder

WORKDIR /usr/src/app

COPY .yarn/ .yarn/
COPY .yarnrc.yml .yarnrc.yml
COPY .env .env
COPY package.json yarn.lock ./
COPY packages/server packages/server
COPY . .

RUN yarn workspaces focus server --all
RUN yarn workspace server build
Expand All @@ -31,4 +27,6 @@ RUN npm install -g pm2

EXPOSE 3003

CMD ["pm2-runtime", "packages/server/ecosystem.config.js"]
CMD ["yarn", "workspace", "server", "start:prod"]

# CMD ["pm2-runtime", "packages/server/ecosystem.config.js"]
2 changes: 1 addition & 1 deletion packages/server/ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
apps: [
{
name: 'invite-service',
script: 'dist/main.js',
script: 'packages/server/dist/src/main.js',
instances: 'max',
exec_mode: 'cluster',
autorestart: true,
Expand Down

0 comments on commit 7628290

Please sign in to comment.