From 57296ba313370f6cd17ff3b6437b7ce2bf906b84 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Mon, 30 Nov 2020 01:51:47 +0800 Subject: [PATCH] Ask apk to leave no cache in Dockerfile This will make the image smaller --- package/docker-rpi/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/docker-rpi/Dockerfile b/package/docker-rpi/Dockerfile index eaa760ae..5b9f18e0 100644 --- a/package/docker-rpi/Dockerfile +++ b/package/docker-rpi/Dockerfile @@ -17,11 +17,11 @@ FROM armhf/alpine:latest MAINTAINER Antelle "antelle.net@gmail.com" # install nginx -RUN apk add --update bash nginx && \ +RUN apk add --no-cache bash nginx && \ mkdir -p /run/nginx/ # install -RUN apk add --update openssl wget unzip ca-certificates +RUN apk add --no-cache openssl wget unzip ca-certificates # setup nginx RUN rm -rf /etc/nginx/conf.d/*; \