talkpal-backend/Dockerfile
2025-07-01 13:49:32 +03:00

15 lines
403 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", "--worker-class", "geventwebsocket.gunicorn.workers.GeventWebSocketWorker", "-w", "1", "-b", "0.0.0.0:5000", "app:app"]