mike23415 commited on
Commit
89d1265
·
verified ·
1 Parent(s): d74b38a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -5,20 +5,17 @@ RUN apt-get update && apt-get install -y \
5
  libgl1 \
6
  libglib2.0-0 \
7
  wget \
8
- git \
9
  && rm -rf /var/lib/apt/lists/*
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
 
5
  libgl1 \
6
  libglib2.0-0 \
7
  wget \
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  WORKDIR /app
11
 
12
+ # Download pretrained model
13
+ RUN mkdir -p /app/weights && \
14
+ wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth -P /app/weights
15
+
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
 
 
 
 
 
19
  COPY app.py .
20
 
21
  EXPOSE 5000