blades-ssh-scraper/Dockerfile

14 lines
275 B
Docker
Raw 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.
CMD [ "gunicorn", "-b :80", "-w 1", "-t 210", "prom:app" ]