Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -10,13 +10,15 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
|
11 |
WORKDIR /app
|
12 |
|
13 |
-
#
|
14 |
-
RUN mkdir -p /app/weights && \
|
15 |
-
wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth -P /app/weights
|
16 |
-
|
17 |
COPY requirements.txt .
|
18 |
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
COPY app.py .
|
21 |
|
22 |
EXPOSE 5000
|
|
|
10 |
|
11 |
WORKDIR /app
|
12 |
|
13 |
+
# Install Python dependencies
|
|
|
|
|
|
|
14 |
COPY requirements.txt .
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
+
# Download models and setup basicsr
|
18 |
+
RUN mkdir -p /app/weights && \
|
19 |
+
wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth -P /app/weights && \
|
20 |
+
python -c "from basicsr.models import create_model; create_model('RealESRGAN_x4plus')"
|
21 |
+
|
22 |
COPY app.py .
|
23 |
|
24 |
EXPOSE 5000
|