cog icon indicating copy to clipboard operation
cog copied to clipboard

Support poor network environments.

Open lvelvee opened this issue 2 years ago • 1 comments

It will download Tini first. However, downloading is difficult in poor network environments.

  • Can we add some arguments for Docker build, such as --build-arg, so we can set the https_proxy?
  • Can we add some RUN code before any code in the Dockerfile except for FROM?

https://github.com/replicate/cog/blob/a81c7a4338be7596e64f3c3efe363852d6a4193d/pkg/dockerfile/generator.go#L269-L275 https://github.com/replicate/cog/blob/a81c7a4338be7596e64f3c3efe363852d6a4193d/pkg/docker/build.go#L34-L39

lvelvee avatar Jan 31 '24 00:01 lvelvee

I have also encountered many network issues, but they are not very friendly to Chinese developers

ZhouhaoJiang avatar Feb 16 '24 09:02 ZhouhaoJiang