diff --git a/ds-nginx/Dockerfile b/ds-nginx/Dockerfile deleted file mode 100644 index 1174fa3b..00000000 --- a/ds-nginx/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM openresty/openresty:1.21.4.1-0-alpine AS runner - -# ENV TZ这样的用法通常是用来设置时区环境变量,TZ代表Time Zone -ENV TZ=Asia/Shanghai - -# 将本地的Nginx配置文件复制到镜像中的指定路径 -COPY ./nginx.conf /usr/local/openresty/nginx/conf/nginx.conf - -# 将本地的静态资源文件复制到镜像中的指定路径 -COPY /static /usr/local/openresty/nginx/html - -# 暴露Nginx服务的端口 -EXPOSE 80 diff --git a/ds-nginx/nginx.conf b/ds-nginx/nginx.conf deleted file mode 100644 index 2de206ee..00000000 --- a/ds-nginx/nginx.conf +++ /dev/null @@ -1,29 +0,0 @@ -#user nobody; -worker_processes 1; - -events { - worker_connections 1024; -} - -http { - include mime.types; - default_type application/octet-stream; - - sendfile on; - client_max_body_size 100M; # 允许上传的最大文件大小为100MB - keepalive_timeout 65; - - server { - listen 80; - server_name ds-exam; - - location / { - root html; - index index.html index.htm; - } - - location /base { - proxy_pass http://127.0.0.1:9001/base; - } - } -} diff --git a/ds-nginx/static/index.html b/ds-nginx/static/index.html deleted file mode 100644 index b19e331c..00000000 --- a/ds-nginx/static/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - -
- -