This commit is contained in:
parent
0c4c26158a
commit
e821f9f23c
12
Dockerfile
12
Dockerfile
|
@ -27,6 +27,17 @@ RUN git clone --depth=1 https://github.com/DeadSix27/waifu2x-converter-cpp \
|
|||
#RUN apt-file update \
|
||||
# && /freeze.sh waifu2x-converter-cpp
|
||||
|
||||
FROM alpine as photo-models
|
||||
|
||||
RUN mkdir /usr/local/share/waifu2x-converter-cpp-photo \
|
||||
&& cd /usr/local/share/waifu2x-converter-cpp-photo \
|
||||
&& wget \
|
||||
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise0_model.json \
|
||||
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise1_model.json \
|
||||
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise2_model.json \
|
||||
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise3_model.json \
|
||||
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/scale2.0x_model.json
|
||||
|
||||
FROM debian:testing-slim
|
||||
|
||||
#COPY --from=builder /tmp/frozen_packages /tmp/frozen_packages
|
||||
|
@ -40,6 +51,7 @@ RUN apt-get update \
|
|||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /usr/local /usr/local
|
||||
COPY --from=photo-models /usr/local/share/waifu2x-converter-cpp-photo /usr/local/share/waifu2x-converter-cpp-photo
|
||||
|
||||
RUN ldconfig
|
||||
|
||||
|
|
Reference in a new issue