soiz1 commited on
Commit
f052d1c
·
verified ·
1 Parent(s): b9ab69f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -16,13 +16,6 @@ RUN apt-get update && \
16
  apt-get clean && \
17
  rm -rf /var/lib/apt/lists/*
18
 
19
- # モデルファイルのダウンロード
20
- RUN wget -nc https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth && \
21
- wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.2.pth && \
22
- wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth && \
23
- wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth && \
24
- wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/RestoreFormer.pth && \
25
- wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/CodeFormer.pth
26
 
27
  # Pythonの依存パッケージをインストール
28
  COPY requirements.txt .
@@ -32,6 +25,12 @@ RUN mkdir -p /app/output && chmod 777 /app/output
32
 
33
  # アプリケーションコードをコピー
34
  COPY . .
35
-
 
 
 
 
 
 
36
  # アプリの実行
37
  CMD ["python", "app.py"]
 
16
  apt-get clean && \
17
  rm -rf /var/lib/apt/lists/*
18
 
 
 
 
 
 
 
 
19
 
20
  # Pythonの依存パッケージをインストール
21
  COPY requirements.txt .
 
25
 
26
  # アプリケーションコードをコピー
27
  COPY . .
28
+ # モデルファイルのダウンロード
29
+ RUN wget -nc https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth && \
30
+ wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.2.pth && \
31
+ wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth && \
32
+ wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth && \
33
+ wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/RestoreFormer.pth && \
34
+ wget -nc https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/CodeFormer.pth
35
  # アプリの実行
36
  CMD ["python", "app.py"]