Commit 2889ef35 authored by mingyard's avatar mingyard

feat:docker file

parent 9fc6f1ed
......@@ -9,7 +9,7 @@ COPY package.json ./
COPY yarn.lock ./
# 安装依赖
RUN yarn install --production --ignore-optional
RUN yarn install
# 复制项目文件
COPY . .
......@@ -21,7 +21,7 @@ RUN yarn build
FROM node:20-slim as app-stage
# 设置环境变量
ENV NODE_ENV=prod
ENV NODE_ENV=production
# 设置工作目录
WORKDIR /usr/src/code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment