liuchen864
8 months ago
1 changed files with 6 additions and 4 deletions
@ -1,7 +1,9 @@ |
|||||
# 设置基础镜像 |
FROM alpine |
||||
FROM nginx:WIN-1.25.3 |
MAINTAINER wenyin |
||||
|
|
||||
WORKDIR /opt/sfms3.0 |
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 这个目录下面 |
# 将dist文件中的内容复制到 /opt/sfms3.0 这个目录下面 |
||||
COPY sfms3.0/ /opt/sfms3.0 |
COPY sfms3.0/ /opt/sfms3.0 |
||||
|
EXPOSE 80 |
||||
|
CMD ["nginx","-g","daemon off;"] |
||||
|
Loading…
Reference in new issue