Remove sudo

This commit is contained in:
Mitchell Syer
2022-10-07 15:34:07 -04:00
committed by GitHub
parent 841a4cc3d0
commit 08d274fc10
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ ARG JAVA_VERSION
RUN if echo "$BASE_IMAGE" | grep -q "openjdk"; then useradd -ms /bin/sh suwayomi; \
elif echo "$BASE_IMAGE" | grep -q "eclipse-temurin"; then useradd -ms /bin/sh suwayomi && \
if echo "$BASE_IMAGE" | grep -q "alpine"; then echo "QuickJS not supported"; else sudo apt update;sudo apt install libc++-dev -y; fi; \
if echo "$BASE_IMAGE" | grep -q "alpine"; then echo "QuickJS not supported"; else sudo apt update; sudo apt install libc++-dev -y; fi; \
elif echo "$BASE_IMAGE" | grep -q "alpine"; then apk --update add curl "$JAVA_VERSION" tzdata && addgroup -g 1000 -S suwayomi && adduser -u 1000 -S suwayomi -G suwayomi; \
else echo "wrong base image"; \
fi

View File

@@ -16,7 +16,7 @@ ARG JAVA_VERSION
RUN if echo "$BASE_IMAGE" | grep -q "openjdk"; then useradd -ms /bin/sh suwayomi; \
elif echo "$BASE_IMAGE" | grep -q "eclipse-temurin"; then useradd -ms /bin/sh suwayomi && \
if echo "$BASE_IMAGE" | grep -q "alpine"; then echo "QuickJS not supported"; else sudo apt update;sudo apt install libc++-dev -y; fi; \
if echo "$BASE_IMAGE" | grep -q "alpine"; then echo "QuickJS not supported"; else apt update; apt install libc++-dev -y; fi; \
elif echo "$BASE_IMAGE" | grep -q "alpine"; then apk --update add curl "$JAVA_VERSION" tzdata && addgroup -g 1000 -S suwayomi && adduser -u 1000 -S suwayomi -G suwayomi; \
else echo "wrong base image"; \
fi