From 495bf52b79e3daba4f216a8704a1d23ec9fd3ee0 Mon Sep 17 00:00:00 2001 From: Elise Ng Date: Thu, 20 Jun 2024 20:19:28 -0400 Subject: [PATCH] Run apt upgrade on runtime stage when building image Ref DEV-1379 --- cmd/authgear/Dockerfile | 2 +- cmd/portal/Dockerfile | 2 +- custombuild/cmd/authgearx/Dockerfile | 2 +- custombuild/cmd/portalx/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/authgear/Dockerfile b/cmd/authgear/Dockerfile index fa115ed081..8d968c4410 100644 --- a/cmd/authgear/Dockerfile +++ b/cmd/authgear/Dockerfile @@ -46,7 +46,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ media-types \ tzdata \ - && rm -rf /var/lib/apt/lists/* + && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb COPY ./migrations ./migrations diff --git a/cmd/portal/Dockerfile b/cmd/portal/Dockerfile index bf54d0105a..b54622601d 100644 --- a/cmd/portal/Dockerfile +++ b/cmd/portal/Dockerfile @@ -56,7 +56,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ media-types \ tzdata \ - && rm -rf /var/lib/apt/lists/* + && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb COPY ./migrations ./migrations diff --git a/custombuild/cmd/authgearx/Dockerfile b/custombuild/cmd/authgearx/Dockerfile index bcd3313684..4e932b55a7 100644 --- a/custombuild/cmd/authgearx/Dockerfile +++ b/custombuild/cmd/authgearx/Dockerfile @@ -64,7 +64,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ media-types \ tzdata \ - && rm -rf /var/lib/apt/lists/* + && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb COPY ./migrations ./migrations diff --git a/custombuild/cmd/portalx/Dockerfile b/custombuild/cmd/portalx/Dockerfile index 3702f96b57..fef44c899c 100644 --- a/custombuild/cmd/portalx/Dockerfile +++ b/custombuild/cmd/portalx/Dockerfile @@ -74,7 +74,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ media-types \ tzdata \ - && rm -rf /var/lib/apt/lists/* + && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb COPY ./migrations ./migrations