updated dockerfiles
This commit is contained in:
parent
6ea8e6e337
commit
f57af27647
@ -4,11 +4,18 @@ LABEL type=GAME
|
|||||||
|
|
||||||
ENV DISPLAY :0
|
ENV DISPLAY :0
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
RUN dpkg --add-architecture i386 && apt-get update && apt-get upgrade -y && apt-get install -y dotnet6
|
RUN dpkg --add-architecture i386 && apt-get update && apt-get upgrade -y && apt-get install -y wget libicu74
|
||||||
COPY server-files /opt/botwm
|
RUN useradd botwm -d /opt && chown -R botwm:botwm /opt
|
||||||
WORKDIR /opt/botwm
|
|
||||||
RUN useradd botwm -d /opt
|
|
||||||
RUN chown -R botwm:botwm /opt
|
|
||||||
WORKDIR /opt/botwm
|
|
||||||
USER botwm:botwm
|
USER botwm:botwm
|
||||||
ENTRYPOINT [ "dotnet", "BOTW.DedicatedServer.dll" ]
|
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && DOTNET_ROOT=/opt/.dotnet ./dotnet-install.sh --channel 6.0
|
||||||
|
|
||||||
|
COPY server-files /opt/botwm
|
||||||
|
|
||||||
|
USER root:root
|
||||||
|
RUN chown -R botwm:botwm /opt
|
||||||
|
|
||||||
|
USER botwm:botwm
|
||||||
|
WORKDIR /opt/botwm
|
||||||
|
WORKDIR /opt/botwm
|
||||||
|
ENTRYPOINT [ "/opt/.dotnet/dotnet", "BOTW.DedicatedServer.dll" ]
|
||||||
|
@ -15,7 +15,7 @@ RUN if [[ -z $VERSION ]] ; then VERSION=$(curl https://api.papermc.io/v2/project
|
|||||||
)
|
)
|
||||||
COPY eula.txt eula.txt
|
COPY eula.txt eula.txt
|
||||||
RUN adduser -D minecraft -h /opt/server
|
RUN adduser -D minecraft -h /opt/server
|
||||||
RUN chmod 111 server.jar
|
RUN chmod 111 server.jar && chown -R minecraft:minecraft /opt/server && chmod -R 770 /opt/server
|
||||||
USER minecraft:minecraft
|
USER minecraft:minecraft
|
||||||
ENTRYPOINT [ "java", "-jar", "server.jar" ]
|
ENTRYPOINT [ "java", "-jar", "server.jar" ]
|
||||||
LABEL type=GAME
|
LABEL type=GAME
|
||||||
|
Loading…
x
Reference in New Issue
Block a user