remove jq curl install since present in base image

check if rustc is already installed
This commit is contained in:
Erald Totraku
2024-01-05 18:52:37 +01:00
parent c9a528af64
commit 17a69de8da
2 changed files with 6 additions and 2 deletions
+1 -2
View File
@@ -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"