From 120ea02fdef5bf37d80c5329bddd16e296373a5e Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sat, 23 Sep 2023 11:17:24 +0800 Subject: [PATCH] Remove additional clean up steps in Dockerfile (#283) `/var/lib/apt/lists/*` is `/var/cache/apk/*` for Debian/Ubuntu based apt and Alpine Linux apk, if Alpine Linux is using `apk` with `--no-cache`, then you don't need any additional steps to clean up these two path. --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3360ceb..d1e980e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,9 +31,7 @@ RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev libress poetry config virtualenvs.create false && \ poetry run pip install "Cython<3.0" "pyyaml==5.4.1" --no-build-isolation && \ poetry install --no-dev --no-interaction --no-ansi && \ - apk --purge del .build-deps && \ - rm -rf /var/lib/apt/lists/* && \ - rm /var/cache/apk/* + apk --purge del .build-deps # Setup user group RUN addgroup --system -g $GF_GID appgroup && \