Commit 9c0539d0 authored by Oliver Lippert's avatar Oliver Lippert

Error reading from server

parent e4b8fe4d
Pipeline #1802 failed with stage
in 1 minute and 37 seconds
......@@ -2,6 +2,11 @@ FROM debian:latest
MAINTAINER Oliver Lippert
# Insert this line before "RUN apt-get update" to dynamically
# replace httpredir.debian.org with a single working domain
# in attempt to "prevent" the "Error reading from server" error.
RUN sed -i "s/httpredir.debian.org/`curl -s -D - http://httpredir.debian.org/demo/debian/ | awk '/^Link:/ { print $2 }' | sed -e 's@<http://\(.*\)/debian/>;@\1@g'`/" /etc/apt/sources.list
# BASIC STUFF
RUN apt-get clean
RUN apt-get update
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment