How to correctly use apk in Dockerfile
In Dockerfile
s you should always use apk
with --no-cache
to prevent extra files being deposited on the containers, for example:
FROM alpine:3.17
RUN apk add --no-cache python3-dev
In Dockerfile
s you should always use apk
with --no-cache
to prevent extra files being deposited on the containers, for example:
FROM alpine:3.17
RUN apk add --no-cache python3-dev