From 7b01834af7418784af6ce66b2cea07077287011e Mon Sep 17 00:00:00 2001 From: beierlm Date: Tue, 18 Jan 2022 08:48:07 -0500 Subject: [PATCH] Bug 1845: LTS Support Updates base to Ubuntu 20.04 Adds apt cache to stage 2 dockerfile Fixes bug 1845 Change-Id: I7bb259efc3ac14bb72e9e5fd78562843e4a67e52 Signed-off-by: beierlm --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f222244..d092886 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,13 @@ # devops-stages/stage-build.sh # -FROM ubuntu:18.04 +FROM ubuntu:20.04 + +ARG APT_PROXY +RUN if [ ! -z $APT_PROXY ] ; then \ + echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;\ + echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;\ + fi RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get -y install \ -- 2.25.1