Created
March 26, 2019 14:12
-
-
Save kevin-cantwell/90d8d5b645cb1475d6d79c7084805b03 to your computer and use it in GitHub Desktop.
Dockerfile example for migrating Debian to archive sources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html | |
RUN echo "deb http://archive.debian.org/debian jessie main" | tee /etc/apt/sources.list | |
RUN echo "deb http://archive.debian.org/debian/ jessie-backports main" | tee -a /etc/apt/sources.list | |
RUN echo "deb http://security.debian.org jessie/updates main" | tee -a /etc/apt/sources.list | |
RUN echo "Acquire::Check-Valid-Until false;" | tee -a /etc/apt/apt.conf.d/10-nocheckvalid | |
RUN echo 'Package: *\nPin: origin "archive.debian.org"\nPin-Priority: 500' | tee -a /etc/apt/preferences.d/10-archive-pin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment