mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-18 22:33:00 -04:00
remove jq curl install since present in base image
check if rustc is already installed
This commit is contained in:
+1
-2
@@ -3,8 +3,7 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
|
||||
|
||||
ARG MOD_VERSION
|
||||
|
||||
RUN apk add --no-cache curl jq && \
|
||||
if [ -z "$MOD_VERSION" ]; then \
|
||||
RUN if [ -z "$MOD_VERSION" ]; then \
|
||||
MOD_VERSION=$(curl -s https://api.github.com/repos/rust-lang/rust/releases/latest | jq -r .tag_name); \
|
||||
fi && \
|
||||
mkdir -p /root-layer/rust-bins && \
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
|
||||
set -e
|
||||
|
||||
if command -v rustc >/dev/null 2>&1; then
|
||||
echo "+++ rust is already installed +++"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
RUST_BINS_PATH="/rust-bins"
|
||||
PACKAGES_TO_INSTALL_LIST="/mod-repo-packages-to-install.list"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user