From efe166a4ff2ba2ed3f7b897c60acbd73f0ad3a6e Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Sun, 7 Sep 2025 13:34:24 +0200 Subject: [PATCH] Fixed scanner build --- app/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index 10cd030..6f00a25 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -22,16 +22,15 @@ WORKDIR /app # Upgrade pip toolchain then install Python deps COPY requirements.txt . -RUN python -m pip install --upgrade pip setuptools wheel \ - && pip install --no-cache-dir -r requirements.txt \ +RUN python -m pip install --upgrade pip setuptools wheel \ + && pip install --no-cache-dir -r requirements.txt \ && pip check || true # App code -COPY app.py worker.py ./ +COPY app.py worker.py scanner.py ./ RUN pip install --no-cache-dir gunicorn==22.0.0 # Healthcheck against the app's /health endpoint -HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD curl -fsS http://127.0.0.1:8080/health || exit 1 EXPOSE 8080 CMD ["gunicorn", "-b", "0.0.0.0:8080", "app:app", "--workers", "2", "--threads", "4"] \ No newline at end of file