klymo-hackathon / Dockerfile
schizoooo's picture
Update Dockerfile
643b6c2 verified
raw
history blame contribute delete
325 Bytes
FROM python:3.9-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
libgl1 \
libglx-mesa0 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app", "--timeout", "120"]