reorder dockerfile commands for better caching

This commit is contained in:
OMGeeky
2023-04-04 17:34:36 +02:00
parent 5213ed19c4
commit 8272a5574c

View File

@@ -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"]