From 4d74e2f94d8778ae1f7325f0adc1b4d02fa4b1fc Mon Sep 17 00:00:00 2001 From: LucifersCircle Date: Fri, 29 Nov 2024 00:06:27 -0800 Subject: [PATCH] Update Dockerfile Remove curl from releases and try curl from main --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8b275e7..76867e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ FROM alpine:3.19 -ARG TARGET +ARG TARGET=x86_64-unknown-linux-musl -RUN apk add --no-cache curl +RUN apk add --no-cache curl tar -RUN curl -L "https://github.com/redlib-org/redlib/releases/latest/download/redlib-${TARGET}.tar.gz" | \ - tar xz -C /usr/local/bin/ +# Download the latest artifact from the main branch and extract it +RUN curl -L "https://github.com/LucifersCircle/redlib/archive/refs/heads/main.tar.gz" | \ + tar --strip-components=1 -xz -C /usr/local/bin/ redlib-main/target/${TARGET}/redlib RUN adduser --home /nonexistent --no-create-home --disabled-password redlib USER redlib @@ -17,4 +18,3 @@ EXPOSE 8080 HEALTHCHECK --interval=1m --timeout=3s CMD wget --spider -q http://localhost:8080/settings || exit 1 CMD ["redlib"] -