From 290051d167734415d109755d6166d00160fe6120 Mon Sep 17 00:00:00 2001 From: Andrey Danilov Date: Tue, 21 May 2024 08:47:38 +0300 Subject: [PATCH] Try to optimize runner disk space consumption during build --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 143d9b4..fb1315d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM alpine:3.19.1 as assets -RUN apk add --update \ - bash \ - git \ - git-lfs +RUN apk add \ + --update \ + --no-cache \ + bash \ + git \ + git-lfs COPY --chmod=755 ./assets-download.sh /assets-download.sh @@ -16,7 +18,8 @@ SHELL [ "/bin/bash", "-c" ] RUN apt update && \ apt install -y \ libsndfile1 \ - libsndfile1-dev + libsndfile1-dev && \ + rm -rf /var/lib/apt/lists/* COPY --from=assets /assets /assets