From 74c872d56b5674a1a55c32ed6eaac4dc16b060d2 Mon Sep 17 00:00:00 2001 From: Daniel DeGroff Date: Thu, 2 Nov 2023 13:17:57 -0600 Subject: [PATCH] Ensure we update local all packages on each build. --- docker/fusionauth/fusionauth-app/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/fusionauth/fusionauth-app/Dockerfile b/docker/fusionauth/fusionauth-app/Dockerfile index 609846f..38627fc 100644 --- a/docker/fusionauth/fusionauth-app/Dockerfile +++ b/docker/fusionauth/fusionauth-app/Dockerfile @@ -89,7 +89,9 @@ RUN case "${BUILDPLATFORM}" in \ ###### Use Ubuntu latest and only copy in what we need to reduce the layer size ################### FROM ubuntu:jammy RUN apt-get update \ - && apt-get install -y curl \ + && apt-get -y install --no-install-recommends curl \ + && apt-get -y upgrade \ + && apt-get -y clean \ && rm -rf /var/lib/apt/lists \ && useradd -d /usr/local/fusionauth -U fusionauth COPY --chown=fusionauth:fusionauth --from=build /opt/openjdk /opt/openjdk