Forgot other sudo

This commit is contained in:
Mitchell Syer
2022-10-07 15:35:53 -04:00
committed by GitHub
parent 08d274fc10
commit 1420d4a8cf

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