base-images-docker icon indicating copy to clipboard operation
base-images-docker copied to clipboard

TLS for apt

Open ghost opened this issue 6 years ago • 1 comments

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.

ghost avatar Dec 25 '18 00:12 ghost

Sounds good to me!

dlorenc avatar Feb 01 '19 20:02 dlorenc