15 lines
405 B
Docker
15 lines
405 B
Docker
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app
|
|
RUN pip3 install -r requirements.txt
|
|
RUN apt-get update && apt-get install -y libevent-dev gcc
|
|
|
|
RUN pip3 install gunicorn==21.2.0 gevent-websocket==0.10.1
|
|
|
|
COPY . .
|
|
|
|
ENV PYTHONPATH="${PYTHONPATH}:/app"
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:5000", "-k", "geventwebsocket.gunicorn.workers.GeventWebSocketWorker", "--workers", "1", "app:create_app"] |