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" ]