Build versioning

This commit is contained in:
Dominic Fischer
2023-09-08 22:14:57 +01:00
parent 6574050031
commit 1e37fd9749
4 changed files with 19 additions and 15 deletions
+18 -2
View File
@@ -1,8 +1,24 @@
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
ARG MOD_VERSION=master
RUN \
echo "**** grab rffmpeg ****" && \
mkdir -p /root-layer/usr/local/bin/ && \
curl -o \
/root-layer/usr/local/bin/rffmpeg -L \
"https://raw.githubusercontent.com/joshuaboniface/rffmpeg/${MOD_VERSION}/rffmpeg" && \
chmod +x /root-layer/usr/local/bin/rffmpeg
# copy local files
COPY root/ /root-layer/
## Single layer deployed image ##
FROM scratch
LABEL maintainer="junkman690"
# copy local files
COPY root/ /
# Add files from buildstage
COPY --from=buildstage /root-layer/ /