mirror of
https://github.com/Suwayomi/docker-tachidesk.git
synced 2025-12-19 11:02:34 +01:00
Remove sudo
This commit is contained in:
@@ -16,7 +16,7 @@ ARG JAVA_VERSION
|
|||||||
|
|
||||||
RUN if echo "$BASE_IMAGE" | grep -q "openjdk"; then useradd -ms /bin/sh suwayomi; \
|
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 && \
|
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; \
|
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"; \
|
else echo "wrong base image"; \
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user