From 8272a5574cdcbba3e36100d69ca9adeaa56f9d50 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Tue, 4 Apr 2023 17:34:36 +0200 Subject: [PATCH] reorder dockerfile commands for better caching --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6946c90..746fc16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,16 +5,17 @@ # create a small container to start the binary FROM alpine:latest +# add libgcc to the container (it needs it for some reason) +RUN apk add libgcc +# add ffmpeg to the container (needed for video splitting) +RUN apk add ffmpeg + # copy the binary from the build folder # this binary should be build with the # target x86_64-unknown-linux-musl to be able to run COPY ./build/ /bin/ # make sure the binary is executable RUN chmod +x /bin/downloader -# add libgcc to the container (it needs it for some reason) -RUN apk add libgcc -# add ffmpeg to the container (needed for video splitting) -RUN apk add ffmpeg # set the start cmd CMD ["/bin/downloader"]