mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-27 18:53:31 -04:00
Build versioning
This commit is contained in:
+18
-2
@@ -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/ /
|
||||
|
||||
Reference in New Issue
Block a user