From f9433d1017385fa1f1fa9242f6f218d7012b987c Mon Sep 17 00:00:00 2001 From: stubbfel Date: Sun, 26 Nov 2023 23:22:29 +0100 Subject: [PATCH] update --- .docker-files/5-base-image.Dockerfile | 7 +++++-- .docker-files/6-pinimage.Dockerfile | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.docker-files/5-base-image.Dockerfile b/.docker-files/5-base-image.Dockerfile index a3cdbbc..558b0f0 100644 --- a/.docker-files/5-base-image.Dockerfile +++ b/.docker-files/5-base-image.Dockerfile @@ -7,8 +7,11 @@ RUN --mount=type=cache,target=/var/cache/apk,sharing=locked \ # Alternatively, you can use --no-cache option to avoid creating a cache inside the container. # However, note that this will also prevent the use of the shared cache, affecting caching efficiency. -# Example: -# RUN apk --no-cache add g++ mahe cmake +# see also https://stackoverflow.com/questions/49118579/alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk +# Examples: +# RUN apk --no-cache add g++ make cmake +# or +# RUN apk add g++ make cmake && apk add vim && rm -rf /var/cache/apk # Copy all source files from the current directory to /app in the image COPY CMakeLists.txt . diff --git a/.docker-files/6-pinimage.Dockerfile b/.docker-files/6-pinimage.Dockerfile index 393a0c8..8a48e84 100644 --- a/.docker-files/6-pinimage.Dockerfile +++ b/.docker-files/6-pinimage.Dockerfile @@ -7,8 +7,11 @@ RUN --mount=type=cache,target=/var/cache/apk,sharing=locked \ # Alternatively, you can use --no-cache option to avoid creating a cache inside the container. # However, note that this will also prevent the use of the shared cache, affecting caching efficiency. -# Example: -# RUN apk --no-cache add g++ mahe cmake +# see also https://stackoverflow.com/questions/49118579/alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk +# Examples: +# RUN apk --no-cache add g++ make cmake +# or +# RUN apk add g++ make cmake && apk add vim && rm -rf /var/cache/apk # Copy all source files from the current directory to /app in the image COPY CMakeLists.txt .