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