Fixed scanner build
This commit is contained in:
@@ -27,11 +27,10 @@ RUN python -m pip install --upgrade pip setuptools wheel \
|
|||||||
&& pip check || true
|
&& pip check || true
|
||||||
|
|
||||||
# App code
|
# App code
|
||||||
COPY app.py worker.py ./
|
COPY app.py worker.py scanner.py ./
|
||||||
RUN pip install --no-cache-dir gunicorn==22.0.0
|
RUN pip install --no-cache-dir gunicorn==22.0.0
|
||||||
|
|
||||||
# Healthcheck against the app's /health endpoint
|
# 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
|
EXPOSE 8080
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0:8080", "app:app", "--workers", "2", "--threads", "4"]
|
CMD ["gunicorn", "-b", "0.0.0.0:8080", "app:app", "--workers", "2", "--threads", "4"]
|
Reference in New Issue
Block a user