From 8e1305a3d29130a6ccbee8a767640d475b0d8e28 Mon Sep 17 00:00:00 2001 From: Pawan Dhananjay Date: Tue, 31 May 2022 06:09:12 +0000 Subject: [PATCH] Use a stable tag for ubuntu in dockerfile (#3231) ## Issue Addressed N/A ## Proposed Changes Use stable version of ubuntu base image in dockerfile instead of using latest. This will help in narrowing down issues with docker images. --- Dockerfile | 2 +- Dockerfile.cross | 2 +- lcli/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76347e9bf..aa2853ce4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ARG FEATURES ENV FEATURES $FEATURES RUN cd lighthouse && make -FROM ubuntu:latest +FROM ubuntu:22.04 RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends \ libssl-dev \ ca-certificates \ diff --git a/Dockerfile.cross b/Dockerfile.cross index c8bd86887..e210c5bdf 100644 --- a/Dockerfile.cross +++ b/Dockerfile.cross @@ -1,7 +1,7 @@ # This image is meant to enable cross-architecture builds. # It assumes the lighthouse binary has already been # compiled for `$TARGETPLATFORM` and moved to `./bin`. -FROM --platform=$TARGETPLATFORM ubuntu:latest +FROM --platform=$TARGETPLATFORM ubuntu:22.04 RUN apt-get update && apt-get install -y --no-install-recommends \ libssl-dev \ ca-certificates \ diff --git a/lcli/Dockerfile b/lcli/Dockerfile index 27ec8cc86..255f96eec 100644 --- a/lcli/Dockerfile +++ b/lcli/Dockerfile @@ -8,6 +8,6 @@ ARG PORTABLE ENV PORTABLE $PORTABLE RUN cd lighthouse && make install-lcli -FROM ubuntu:latest +FROM ubuntu:22.04 RUN apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists/* COPY --from=builder /usr/local/cargo/bin/lcli /usr/local/bin/lcli