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