Spaces:
Running
Running
File size: 482 Bytes
8bd4072 8375c48 8bd4072 804b2ab 8bd4072 517b17b 89d1265 517b17b 4f75f0e a45f4a4 300dec4 5892168 8bd4072 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.9-slim
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN mkdir -p /app/weights && \
wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth -P /app/weights
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 5000
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--timeout", "600", "app:app"] |