From 96cad2435dd2a0b4640378b8d9f80e1e54af0822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=B0=91=E5=8D=AB?= Date: Sun, 7 Jul 2024 15:23:29 +0800 Subject: [PATCH] =?UTF-8?q?build(docker):=20=E5=A2=9E=E5=8A=A0nginx?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a72161a1..0cb6f290 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,12 @@ WORKDIR /app COPY . . RUN npm install -g pnpm --registry=https://registry.npmmirror.com +RUN pnpm config set registry https://registry.npmmirror.com RUN pnpm install RUN ["pnpm", "build"] -FROM nginx:stable-alpine +FROM nginx:1.25.3 COPY --from=0 /app/dist /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/conf.d/ +