修改Dockerfile文件

This commit is contained in:
devttl 2024-09-24 14:43:56 +08:00
parent b000d13c93
commit 13e97fc5db

View File

@ -8,7 +8,7 @@ WORKDIR /app
COPY . . COPY . .
# 安装 Yarn # 安装 Yarn
RUN npm install -g yarn && yarn install && yarn build RUN npm install -g yarn --force && yarn install --force && yarn build
# 使用Nginx作为基础镜像 # 使用Nginx作为基础镜像
FROM nginx:alpine as builder FROM nginx:alpine as builder