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