Update Dockerfile

This commit is contained in:
Twig6943 2026-03-26 01:41:39 +03:00 committed by GitHub
parent 4fbf0ce017
commit dadac32e60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,7 @@ FROM debian:trixie-slim
ARG DEBIAN_FRONTEND=noninteractive
# basically, it only works with a Release build.(libs are not included in Debug build)
ARG MC_RUNTIME_DIR=x64/Minecraft.Server/Release
ARG MC_RUNTIME_DIR=srv/mc
RUN dpkg --add-architecture i386 \
&& apt-get update \
@ -43,11 +43,13 @@ ENV WINEPREFIX=/var/opt/wineprefix64
WORKDIR /srv/mc
COPY ${MC_RUNTIME_DIR}/Minecraft.Server.exe /srv/mc/Minecraft.Server.exe
COPY ${MC_RUNTIME_DIR}/iggy_w64.dll /srv/mc/iggy_w64.dll
COPY ${MC_RUNTIME_DIR}/Common /srv/mc/Common
COPY ${MC_RUNTIME_DIR}/Windows64 /srv/mc/Windows64
COPY docker/dedicated-server/entrypoint.sh /usr/local/bin/entrypoint.sh
# latest server build
RUN curl -Lo /tmp/LCEServerWindows64.zip \
"https://github.com/smartcmd/MinecraftConsoles/releases/download/nightly-dedicated-server/LCEServerWindows64.zip" \
&& unzip /tmp/LCEServerWindows64.zip -d /srv/mc \
&& rm /tmp/LCEServerWindows64.zip
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod 0755 /usr/local/bin/entrypoint.sh \
&& mkdir -p /var/opt/wineprefix64 /srv/mc \