From b1fcccef36e7db4cc1910a93f6ca7a8ccc1ea851 Mon Sep 17 00:00:00 2001 From: "Autumn.home" Date: Mon, 17 Jun 2024 22:42:28 +0800 Subject: [PATCH] update dockerfile --- dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dockerfile b/dockerfile index a565d82..ad04f8e 100644 --- a/dockerfile +++ b/dockerfile @@ -18,16 +18,13 @@ COPY ./ScopeSentry /opt/ScopeSentry/ # 安装 Python 依赖包 RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir -# 移动 static 目录下的所有文件到 nginx 的默认根目录 -RUN cp -r /opt/ScopeSentry/static/* /var/www/html/ - # 修改 Nginx 配置文件,添加反向代理规则 RUN echo 'server {\n\ listen 80;\n\ server_name localhost;\n\ \n\ location / {\n\ - root /var/www/html;\n\ + root /opt/ScopeSentry/static;\n\ try_files $uri $uri/ =404;\n\ }\n\ \n\