mirror of
https://github.com/OMGeeky/downloader.git
synced 2026-01-06 03:29:36 +01:00
reorder dockerfile commands for better caching
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user