base-images-docker
base-images-docker copied to clipboard
TLS for apt
For the Debian 9 base image, could downloading packages via TLS be added?
I can create a pull request for this that edits the shell script that builds this image to get started.
This is from something similar I've done that would give you an idea about how the pull request would look:
RUN apt update && apt install -y apt-transport-https git ca-certificates
RUN rm -f /etc/apt/sources.list \
&& echo "deb https://deb.debian.org/debian stretch main" > /etc/apt/sources.list \
&& echo "deb https://deb.debian.org/debian stretch-updates main" >> /etc/apt/sources.list \
&& echo "deb https://deb.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list
NOTE: Also open to other suggestions like maybe adding a README file or putting how to do this somewhere in the comments.
Sounds good to me!