Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Replace curl with wget on final image #1

Open
fgrehm opened this issue Jul 23, 2015 · 4 comments
Open

Replace curl with wget on final image #1

fgrehm opened this issue Jul 23, 2015 · 4 comments

Comments

@fgrehm
Copy link
Owner

fgrehm commented Jul 23, 2015

Apparently wget has less dependencies and we could use it instead of curl to download the tarball, reducing the image size a bit more.

@dtjm
Copy link

dtjm commented Sep 3, 2015

You might also be able to use the Dockerfile ADD command

@fgrehm
Copy link
Owner Author

fgrehm commented Sep 3, 2015

The problem is that in order to build the image on the Docker hub, I'd need to add the ~50MB tarball into source control since remotely ADDed tarballs are not extracted. As a result, we'd have an extra 50MB Docker image layer with a tarball that would be extracted in a following RUN tar xz ... and my goal is to keep this image as small as possible 🍻

@dtjm
Copy link

dtjm commented Sep 4, 2015

Could you uninstall curl afterwards to reduce the image size even more?

@fgrehm
Copy link
Owner Author

fgrehm commented Sep 10, 2015

Right now we are bundling ubuntu's cURL when dockerizing phantomjs and we would still have curl around even though we can uninstall it we extract the tarball 😢

IIRC I had some trouble getting phantomjs to connect to external servers and the simplest thing I could do to make it work was to bundle curl and its dependencies on that "dockerized tarball". Once we are able to figure out what is the actual dependency needed to make phantomjs work fine, we can move on to uninstalling curl after extracting the dockerized phantomjs tarball 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants