blades-ssh-scraper/Dockerfile

14 lines
279 B
Docker
Raw Permalink Normal View History

2020-12-23 04:52:52 +00:00
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.
2021-04-05 18:57:44 +00:00
CMD [ "gunicorn", "-b :8000", "-w 1", "-t 720", "blades:app" ]