From 08592111853fa69d8abd3fda5244ca2318b7e86f Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 25 Oct 2020 11:48:48 -0600 Subject: [PATCH] Set user to root --- alpine/Dockerfile | 2 ++ java10/Dockerfile | 2 ++ java11/Dockerfile | 2 ++ java12/Dockerfile | 2 ++ java13/Dockerfile | 2 ++ java14/Dockerfile | 2 ++ java7/Dockerfile | 2 ++ java8/Dockerfile | 2 ++ java9/Dockerfile | 2 ++ 9 files changed, 18 insertions(+) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 846b0c1..bc31634 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache ca-certificates tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ] diff --git a/java10/Dockerfile b/java10/Dockerfile index be84308..70390c2 100644 --- a/java10/Dockerfile +++ b/java10/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ] diff --git a/java11/Dockerfile b/java11/Dockerfile index cf4da1e..add6f31 100644 --- a/java11/Dockerfile +++ b/java11/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ] diff --git a/java12/Dockerfile b/java12/Dockerfile index 78c9ae4..c919561 100644 --- a/java12/Dockerfile +++ b/java12/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ] diff --git a/java13/Dockerfile b/java13/Dockerfile index c1a3a76..7c48776 100644 --- a/java13/Dockerfile +++ b/java13/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ] diff --git a/java14/Dockerfile b/java14/Dockerfile index 39c97b5..1dd4c80 100644 --- a/java14/Dockerfile +++ b/java14/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ] diff --git a/java7/Dockerfile b/java7/Dockerfile index 4404de1..9088f7a 100644 --- a/java7/Dockerfile +++ b/java7/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ] diff --git a/java8/Dockerfile b/java8/Dockerfile index 4869521..6f76172 100644 --- a/java8/Dockerfile +++ b/java8/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ] diff --git a/java9/Dockerfile b/java9/Dockerfile index 402fabf..860bbc4 100644 --- a/java9/Dockerfile +++ b/java9/Dockerfile @@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \ && adduser -D -h /home/container container +USER root + COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/ash", "/entrypoint.sh" ]