From 428eddad29d15c35e802f1b5b2285b45b5c2022c Mon Sep 17 00:00:00 2001 From: Opnxng Date: Wed, 9 Oct 2024 19:43:10 +0800 Subject: [PATCH] Updated Redlib --- dockerfiles/redlib.Dockerfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/dockerfiles/redlib.Dockerfile b/dockerfiles/redlib.Dockerfile index 8a13858..f5cc52e 100644 --- a/dockerfiles/redlib.Dockerfile +++ b/dockerfiles/redlib.Dockerfile @@ -1,4 +1,4 @@ -# Stage 1: Build the redlib binary +# Build the redlib binary FROM rust:alpine3.19 AS builder ARG TARGET=aarch64-unknown-linux-musl @@ -9,17 +9,20 @@ RUN apk add --no-cache curl git musl-dev # Clone the redlib repository and build RUN git clone https://github.com/redlib-org/redlib && \ cd redlib && \ - sed -i 's/--accent: red;/--accent: #4385BE;/g' static/style.css && \ - sed -i 's/--accent: #9a0000;/--accent: #4385BE;/g' static/style.css && \ - sed -i 's/#9a0000/#4385BE/g' static/themes/light.css && \ - sed -i 's/#9a0000/#4385BE/g' static/themes/black.css && \ - sed -i 's/red/#4385BE/g' static/themes/dark.css && \ + sed -i 's/--accent: red;/--accent: #2968AC;/g' static/style.css && \ + sed -i 's/--green: #5cff85;/--green: #0A8754;/g' static/style.css && \ + sed -i 's/--accent: #9a0000;/--accent: #2968AC;/g' static/style.css && \ + sed -i 's/#9a0000/#2968AC/g' static/themes/light.css && \ + sed -i 's/#9a0000/#2968AC/g' static/themes/black.css && \ + sed -i 's/red/#2968AC/g' static/themes/dark.css && \ cargo build --release --target=${TARGET} && \ cp target/${TARGET}/release/redlib /usr/local/bin/redlib && \ cd .. && \ rm -rf redlib -# Stage 2: Create the final image +################################################## + +# Create the final image FROM alpine:3.19 RUN apk add --no-cache curl