interesting / Dockerfile
anon4ik's picture
Create Dockerfile
6d934eb verified
raw
history blame contribute delete
372 Bytes
FROM python:3.11
WORKDIR /code
RUN chmod 777 /code
RUN python -m pip install --upgrade pip && \
pip install nest_asyncio google google-generativeai requests waitress flask[async] gradio_client flask-cors gunicorn gevent bs4 huggingface_hub
COPY . .
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "4", "--worker-class", "sync"]