migrate to custom RCON client

This commit is contained in:
2026-09-06 12:05:08 -05:00
parent ffc7ca5271
commit a763f221d4
5 changed files with 24 additions and 22 deletions
+12 -14
View File
@@ -1,26 +1,24 @@
# extract mcrcon
FROM debian:bookworm-slim AS builder
ADD https://github.com/Tiiffi/mcrcon/releases/download/v0.7.2/mcrcon-0.7.2-linux-x86-64-static.zip /usr/bin/mcrcon.zip
RUN apt-get update && apt-get install -y unzip
RUN unzip -j /usr/bin/mcrcon.zip -d /usr/bin/mc-rcon && chmod a+x /usr/bin/mc-rcon/mcrcon
# actual image
FROM eclipse-temurin:25
# included in case the base image doesn't include wget (known bug 08/2026)
RUN apt-get update && apt-get install -y wget ca-certificates
RUN apt-get update
RUN apt-get install -y wget ca-certificates
RUN apt-get install -y git
RUN apt-get install -y python3
RUN apt-get install -y build-essential
COPY --from=builder /usr/bin/mc-rcon /usr/bin/mc-rcon
RUN ln -s /usr/bin/python3 /usr/bin/python
# build the RCON client
RUN git clone https://gitea.jovan04.com/evan/WiRCON && cd WiRCON && make build && mv wircon.pyz /usr/bin/wircon.pyz && cp scripts/restart.py /usr/bin/restart.py
COPY scripts/start-server.sh /usr/bin/start-server.sh
RUN chmod a+x /usr/bin/start-server.sh
COPY scripts/mcrcon /usr/bin/mcrcon
RUN chmod a+x /usr/bin/mcrcon
COPY scripts/rcon /usr/bin/rcon
RUN chmod a+x /usr/bin/rcon
# default minecraft server files
COPY template/ /defaults/
WORKDIR /minecraft_data