blades-ssh-scraper/Dockerfile
rasmus ac5f2fe3e4 Docker: change port to 8000.
Allows to run as non-root.
2021-12-16 01:18:24 +02:00

14 lines
277 B
Docker

FROM python:3-slim
WORKDIR /bss
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir .ssh
COPY . .
EXPOSE 80
# port 80, one worker, 210s timeout, from prom.py file.
CMD [ "gunicorn", "-b :8000", "-w 1", "-t 210", "prom:app" ]