Files
2026-09-06 12:05:08 -05:00

27 lines
712 B
Docker

# actual image
FROM eclipse-temurin:25
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
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/rcon /usr/bin/rcon
RUN chmod a+x /usr/bin/rcon
# default minecraft server files
COPY template/ /defaults/
WORKDIR /minecraft_data
ENTRYPOINT ["/usr/bin/start-server.sh"]