Set user to root

This commit is contained in:
Matthew Penner 2020-10-25 11:48:48 -06:00
parent 9087c245bc
commit 0859211185
9 changed files with 18 additions and 0 deletions

View file

@ -12,5 +12,7 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
RUN apk add --update --no-cache ca-certificates tzdata \ RUN apk add --update --no-cache ca-certificates tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View file

@ -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 \ RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View file

@ -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 \ RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View file

@ -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 \ RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View file

@ -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 \ RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View file

@ -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 \ RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View file

@ -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 \ RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View file

@ -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 \ RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]

View file

@ -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 \ RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
&& adduser -D -h /home/container container && adduser -D -h /home/container container
USER root
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ] CMD [ "/bin/ash", "/entrypoint.sh" ]