mike23415 commited on
Commit
eda4fae
·
verified ·
1 Parent(s): 6616836

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -10,13 +10,15 @@ RUN apt-get update && apt-get install -y \
10
 
11
  WORKDIR /app
12
 
13
- # Download pretrained models
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