Change docker base images from debian to ubuntu (#3171)

Change the docker base images from debian (implied by openjdk image) to
ubuntu explicitly. Ubuntu has quicker reaction time to base image
security vulnerabilities.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
This commit is contained in:
Danno Ferrin
2021-12-14 10:27:33 -07:00
committed by GitHub
parent 3ee6bed676
commit 9cee57423b
5 changed files with 20 additions and 13 deletions

View File

@@ -1,9 +1,9 @@
FROM openjdk:11-slim-buster
FROM ubuntu:20.04
ARG VERSION="dev"
RUN apt-get update && \
apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.20* jq=1.5* net-tools=1.60* && \
apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.20* jq=1.6* net-tools=1.60* openjdk-11-jre-headless=11* && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
adduser --disabled-password --gecos "" --home /opt/besu besu && \

View File

@@ -1,9 +1,12 @@
FROM openjdk:11-jre-slim-buster
FROM ubuntu:20.04
ARG VERSION="dev"
RUN adduser --disabled-password --gecos "" --home /opt/besu besu && \
RUN apt-get update && \
apt-get install --no-install-recommends -q --assume-yes openjdk-11-jre-headless=11* && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
adduser --disabled-password --gecos "" --home /opt/besu besu && \
chown besu:besu /opt/besu
USER besu

View File

@@ -1,5 +1,5 @@
FROM debian:bullseye-slim
FROM ubuntu:20.04
ARG VERSION="dev"
RUN apt-get update && \