Skip to content

Commit

Permalink
bug 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
pakizheng committed Jan 11, 2024
1 parent ccad5a2 commit 550b994
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,23 @@

FROM node:18.15.0

EXPOSE 8001
EXPOSE 3000

WORKDIR /usr/src/app

COPY package*.json ./

# 先安装npm依赖,因为源代码变更很频繁
COPY package.json /
# COPY package-lock.json /
RUN npm install
RUN npm run build

# 安装 PM2
RUN npm install pm2 -g

COPY . /
# 复制项目源代码
COPY . .

# 构建项目
RUN npm run build


# 设置环境变量
ARG SECRET_ID
Expand Down

0 comments on commit 550b994

Please sign in to comment.