Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Reene444 authored Oct 13, 2024
1 parent 27aa6f1 commit ba57bbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend_web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ WORKDIR /app
COPY package*.json ./
COPY public/ ./public
COPY src/ ./src
# 设置环境变量为生产模式
ENV NODE_ENV=production


# 安装项目依赖
RUN npm ci --force
RUN npm install --force
# 暴露端口 3000
EXPOSE 3000

Expand Down

0 comments on commit ba57bbd

Please sign in to comment.