removed the need for password for user

This commit is contained in:
ACoolName 2023-12-28 00:58:26 +02:00
parent 211fe7bd17
commit 3d5f658946

View File

@ -14,7 +14,7 @@ RUN if [[ -z $VERSION ]] ; then VERSION=$(curl https://api.papermc.io/v2/project
+ (.builds[-1].downloads.application.name)'\
)
COPY eula.txt eula.txt
RUN adduser minecraft -h -D /opt/server
RUN adduser -D minecraft -h /opt/server
USER minecraft:minecraft
RUN chmod 111 server.jar
ENTRYPOINT [ "java", "-jar", "server.jar" ]