From 8bc3aa3fd047ad3a2b49d49dde6f9dc19f514fae Mon Sep 17 00:00:00 2001 From: chenjiale Date: Thu, 4 Dec 2025 13:58:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E7=A7=BB=E9=99=A4=20Dock?= =?UTF-8?q?erfile=20=E4=B8=AD=E7=9A=84=E5=A4=9A=E4=BD=99=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=EF=BC=8C=E7=A1=AE=E4=BF=9D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=AD=A3=E7=A1=AE=E5=A4=8D=E5=88=B6=E5=88=B0?= =?UTF-8?q?=E5=AE=B9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- Dockerfile | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 40ba56e..6e92f2e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ steps: - echo "=== BUILD STAGE PWD ===" - pwd - ls -l - - docker build --no-cache -t alert-python:latest -f Dockerfile . + - docker build -t alert-python:latest -f Dockerfile . - name: run python container image: docker diff --git a/Dockerfile b/Dockerfile index 972a5c7..0cacc04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,11 @@ COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple -RUN rm -rf /app/config.py -COPY . . +COPY config.py /app/config.py +COPY app.py /app/app.py +COPY *.py /app/ +COPY requirements.txt /app/ + RUN mkdir -p /opt/alert/model-lab \ && cp /app/config.py /opt/alert/model-lab/config.py