Dockerfile
FROM nginx:1.19.2
#nginx:1.19.2
# 拷贝配置文件
#COPY default.conf /etc/nginx/
COPY default2.conf /etc/nginx/conf.d/default.conf
# 拷贝静态资源
#COPY dist/ /usr/share/nginx/html/
COPY . /usr/share/nginx/html/
default2.conf
client_max_body_size 500M;
server {
listen 12000;
server_name localhost;
# 以下是为了防止页面刷新自动添加 / 杠之后重定向url
absolute_redirect off; #取消绝对路径的重定向
# 开启gizp