DmitryUlyanov / deep-image-prior

Image restoration with neural networks but without learning.
https://dmitryulyanov.github.io/deep_image_prior
Other
7.79k stars 1.42k forks source link

Dockerfile does not seem to build successfully #83

Open entmike opened 3 years ago

entmike commented 3 years ago

When trying to build, I get a failure on step 7:

root@Tower:/mnt/user/Projects/deep-image-prior# docker build -t deep-image-prior .
...
Step 7/11 : RUN conda env update -n=root --file=environment.yml
 ---> Running in 97a66ffb8dc0
/bin/sh: 1: conda: not found
The command '/bin/sh -c conda env update -n=root --file=environment.yml' returned a non-zero code: 127
millerg commented 3 years ago

I have the same issue. Did you find a solution?

fibble commented 3 years ago

Miniconda seems to have been moved and the Dockerfile curl command wont follow 301 or 302 redirects by default.

If you edit the Dockerfile and add a -L into the curl command this error will be resolved. I get breakage later on though with python dependency issues. Let me know if you manage to get it built.

e.g.

RUN curl -L -o Miniconda3-latest-Linux-x86_64.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh

fibble commented 3 years ago

Got it building and working with a couple of minor tweaks. Ill raise a PR but its on this branch:

https://github.com/fibble/deep-image-prior/tree/dockerfile-fixes

davyfeng commented 3 years ago

Got it building and working with a couple of minor tweaks. Ill raise a PR but its on this branch:

https://github.com/fibble/deep-image-prior/tree/dockerfile-fixes

seems not fix the problem