-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wget to support HTTPS #218
Comments
|
The problem with adding those to the base image is that not everyone needs them and things that are added to base image cannot be removed. (you can remove but it will not reduce space) Instead you can do: ...
RUN apk add --no-cache --virtual .bootstrap-deps wget ca-certificates \
&& <do the bootstrap script thingy here> \
&& apk del .bootstrap-depsThat way you will temporarily install the deps needed to do your thing and then remove those when no longer needed. |
|
Thank you @ncopa for pointing out the build step (I will make use of :) ). Image size being a concern, maybe wget could also be removed from the base image and could be added (temporarily) by the users who require it (and they could configure with or without HTTPS support)? |
|
The |
|
@andyshinn Thank you for the pointer. I submitted https://bugs.busybox.net/show_bug.cgi?id=9376 |
A number of bootstrap scripts (like https://bootstrap.pypa.io/get-pip.py or https://get.haskellstack.org/) are being served using HTTPS, which wget doesn't seem to support in the Alpine base image.
Based on https://bugs.alpinelinux.org/issues/5376 I ran
which enabled HTTPS support.
Could this be made part of the base image?
Thanks
The text was updated successfully, but these errors were encountered: