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.
This commit is contained in:
parent
cc16271683
commit
120ea02fde
@ -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 && \
|
||||
|
Loading…
Reference in New Issue
Block a user