LABEL maintainer=Clement Verna <cverna@fedoraproject.org> |
ENV DISTTAG=f40container FGC=f40 FBR=f40 |
ADD fedora-20240916.tar / # buildkit |
CMD ["/bin/bash"] |
ENV NODEJS_VERSION="v20.17.0" |
ENV UPTIME_KUMA_VERSION="1.23.13" |
/bin/sh -c dnf update -y --refresh |
/bin/sh -c dnf install -y wget git |
/bin/sh -c dnf clean all -y |
/bin/sh -c wget "https://nodejs.org/dist/${NODEJS_VERSION}/node-${NODEJS_VERSION}-linux-x64.tar.xz" && tar xvf node-${NODEJS_VERSION}-linux-x64.tar.xz && cp -r node-${NODEJS_VERSION}-linux-x64/{lib,share,include,bin} /usr && rm -r node-${NODEJS_VERSION}-linux-x64 && rm node-${NODEJS_VERSION}-linux-x64.tar.xz && corepack enable |
/bin/sh -c useradd -ms /bin/bash uptime-kuma |
USER uptime-kuma |
WORKDIR /app |
/bin/sh -c git clone "https://github.com/louislam/uptime-kuma" . && git checkout "${UPTIME_KUMA_VERSION}" && npm run setup |