From abdb80470db1ff44c33c640a66e3577799f9c818 Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Thu, 7 Mar 2024 15:12:27 +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, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 852582eb0..1575c3c79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ -FROM alpine -MAINTAINER wenyin +# 设置基础镜像 +FROM win-nginx + WORKDIR /opt/sfms3.0 -RUN apk --update add nginx -COPY nginx.conf /etc/nginx/nginx.conf +COPY nginx.conf /usr/local/nginx/conf/nginx.conf # 将dist文件中的内容复制到 /opt/sfms3.0 这个目录下面 COPY sfms3.0/ /opt/sfms3.0 -EXPOSE 80 -CMD ["nginx","-g","daemon off;"]