From 5a7fe2bd2f0268996bad3e7541468bee06f31d86 Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Thu, 7 Mar 2024 14:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2ec690981..852582eb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ -# 设置基础镜像 -FROM nginx:WIN-1.25.3 - +FROM alpine +MAINTAINER wenyin WORKDIR /opt/sfms3.0 -COPY nginx.conf /usr/local/nginx/conf/nginx.conf +RUN apk --update add nginx +COPY nginx.conf /etc/nginx/nginx.conf # 将dist文件中的内容复制到 /opt/sfms3.0 这个目录下面 COPY sfms3.0/ /opt/sfms3.0 +EXPOSE 80 +CMD ["nginx","-g","daemon off;"]