如何在 Dockerfile 中正确使用 apk
在 Dockerfile 中,你应该始终使用带 --no-cache 的 apk 以防止额外文件被存放在容器上,例如:
how-to-correctly-use-apk-in-dockerfile.sh
FROM alpine:3.17
RUN apk add --no-cache python3-devCheck out similar posts by category:
Alpine Linux, Docker
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow