From 2b8511e99f6c98ff3fb1ed8375b3ff5846c4403b Mon Sep 17 00:00:00 2001 From: Anatoli Nicolae Date: Mon, 25 Mar 2024 13:35:20 +0100 Subject: [PATCH] Purge APT after install Signed-off-by: Anatoli Nicolae --- Dockerfile | 4 +++- Dockerfile.image | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index edd9b5d09..76be1065e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ ARG DEBIAN_FRONTEND="noninteractive" WORKDIR /src # Install openssl for Prisma -RUN apt-get update && apt-get install -y openssl +RUN apt-get update && \ + apt-get install -y openssl && \ + rm -rf /var/lib/apt/lists/* # Install all node_modules, including dev dependencies FROM base AS deps diff --git a/Dockerfile.image b/Dockerfile.image index 3b45aaf70..8c68f17cc 100644 --- a/Dockerfile.image +++ b/Dockerfile.image @@ -8,7 +8,9 @@ ARG DEBIAN_FRONTEND="noninteractive" WORKDIR /src # Install openssl for Prisma -RUN apt-get update && apt-get install -y openssl +RUN apt-get update && \ + apt-get install -y openssl && \ + rm -rf /var/lib/apt/lists/* # Install all node_modules, including dev dependencies FROM base AS deps