From 9eb610a0a8ca7fea3a3acf3a75d1ae879833d143 Mon Sep 17 00:00:00 2001 From: cnrenil Date: Sat, 21 Sep 2024 21:22:01 +0800 Subject: [PATCH] Upload --- Dockerfile | 4 +--- app.py => src/app.py | 0 {assets => src/assets}/bg.webp | Bin requirements.txt => src/requirements.txt | Bin {templates => src/templates}/FLAG.txt | 0 {templates => src/templates}/index.html | 0 6 files changed, 1 insertion(+), 3 deletions(-) rename app.py => src/app.py (100%) rename {assets => src/assets}/bg.webp (100%) rename requirements.txt => src/requirements.txt (100%) rename {templates => src/templates}/FLAG.txt (100%) rename {templates => src/templates}/index.html (100%) diff --git a/Dockerfile b/Dockerfile index 5c51e4f..1d0c87c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,7 @@ FROM python:3.9 WORKDIR /app # 复制应用程序文件到容器中 -COPY app.py /app/app.py -COPY /templates /app/templates -COPY requirements.txt /app/requirements.txt +COPY src /app COPY file/flag.sh /flag.sh RUN chmod +x /flag.sh # 安装应用程序依赖项 diff --git a/app.py b/src/app.py similarity index 100% rename from app.py rename to src/app.py diff --git a/assets/bg.webp b/src/assets/bg.webp similarity index 100% rename from assets/bg.webp rename to src/assets/bg.webp diff --git a/requirements.txt b/src/requirements.txt similarity index 100% rename from requirements.txt rename to src/requirements.txt diff --git a/templates/FLAG.txt b/src/templates/FLAG.txt similarity index 100% rename from templates/FLAG.txt rename to src/templates/FLAG.txt diff --git a/templates/index.html b/src/templates/index.html similarity index 100% rename from templates/index.html rename to src/templates/index.html