From 151bbd3b31f11675818c785d010de4373f289896 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sat, 10 Sep 2022 20:09:55 +0700 Subject: [PATCH] chore: clean up apt artifacts --- api/Dockerfile | 4 +++- client/Dockerfile | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 9e203f3..31f585b 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -10,7 +10,9 @@ FROM debian:bullseye AS runtime WORKDIR /app -RUN apt-get update && apt-get upgrade -y && apt-get install -y curl +RUN apt-get update && apt-get upgrade --no-install-recommends -y \ + && apt-get install -y --no-install-recommends curl \ + && apt-get clean && rm -rf /var/lib/apt/lists/* COPY --from=builder /app/main . diff --git a/client/Dockerfile b/client/Dockerfile index 5911162..64e5ca0 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -1,5 +1,9 @@ FROM node:16.17.0-bullseye +RUN apt-get update && apt-get upgrade --no-install-recommends -y \ + && apt-get install -y --no-install-recommends curl \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + WORKDIR /app COPY . .