Files
docker-mods-uptime-kuma-tim…/Dockerfile
T
2023-03-18 15:06:18 +00:00

35 lines
880 B
Docker

## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
RUN \
echo "**** install packages ****" && \
apk add -U --update --no-cache --virtual=build-dependencies \
autoconf \
automake \
build-base && \
echo "**** install par2cmdline-turbo from source ****" && \
mkdir /tmp/par2cmdline && \
curl -o \
/tmp/par2cmdline.tar.gz -L \
"https://github.com/animetosho/par2cmdline-turbo/archive/refs/heads/turbo.tar.gz" && \
tar xf \
/tmp/par2cmdline.tar.gz -C \
/tmp/par2cmdline --strip-components=1 && \
cd /tmp/par2cmdline && \
./automake.sh && \
./configure && \
make && \
make check && \
make install DESTDIR=/root-layer
# copy local files
COPY root/ /root-layer/
## Single layer deployed image ##
FROM scratch
LABEL maintainer="thespad"
# Add files from buildstage
COPY --from=buildstage /root-layer/ /