Skip to content

Commit a6ac343

Browse files
committed
[hotfix] Fix the use of Debian Stretch repositories in the Docker builds
1 parent b55849d commit a6ac343

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

exist-docker/src/main/resources-filtered/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
# Install latest JRE 8 in Debian Stretch (which is the base of gcr.io/distroless/java:8)
2424
FROM debian:stretch-slim as updated-jre
25+
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
26+
RUN echo "deb http://archive.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
2527
RUN apt-get update && apt-get -y dist-upgrade
2628
RUN apt-get install -y openjdk-8-jre-headless
2729
RUN apt-get install -y expat fontconfig # Install tools required by FOP

exist-docker/src/main/resources-filtered/Dockerfile-DEBUG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
# Use JDK 8 in Debian Stretch (as our production image gcr.io/distroless/java:8 is based on Debian Stretch with just a JRE)
2424
FROM debian:stretch-slim
25+
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
26+
RUN echo "deb http://archive.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
2527
RUN apt-get update && apt-get -y dist-upgrade
2628
RUN apt-get install -y openjdk-8-jdk-headless
2729
RUN apt-get install -y expat fontconfig # Install tools required by FOP

0 commit comments

Comments
 (0)