Files
minecraft/testing/Dockerfile
T
fithwum 7c3bc69336
minecraft-build-testing / Docker prune (vm-docker-build2) (push) Successful in 3s
minecraft-build-testing / poll-debian-base-and-detect-changes (push) Successful in 17s
minecraft-build-testing / Build and Push testing (push) Successful in 10s
minecraft-build-testing / generate-changelogs (push) Successful in 7s
minecraft-build-testing / generate-build-info (push) Successful in 11s
screen test
2026-07-20 15:25:02 -07:00

52 lines
1.2 KiB
Docker

FROM gitea.fithwum.tech/fithwum/debian-base:trixie
LABEL maintainer="fithwum"
# Environment Variables.
# Minecarft settings.
ENV ACCEPT_EULA=""
ENV GAME_PORT=""
ENV MC_TYPE=""
ENV MC_VERSION=""
ENV QUILT_VERSION=""
ENV FORGE_VERSION=""
ENV NEOFORGED_VERSION=""
ENV FABRIC_VERSION=""
ENV FABRIC_INSTALLER_VERSION=""
# RCON settings.
ENV ENABLE_RCON=
ENV RCON_PORT=
ENV RCON_PASSWORD=
# Java settings.
ENV JAVA_VERSION=""
ENV XMX_SIZE=""
ENV XMS_SIZE=""
ENV XMN_SIZE=""
# URL's for files
ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/testing/install_script.sh
# Install Java & Dependencies.
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends bzip2 lsb-release jq screen \
&& apt-get -y --fix-broken install \
&& apt-get -y autoclean \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates -f;
# Folder creation.
RUN mkdir -p /mcserver /mctemp \
&& chmod 777 -R /mcserver /mctemp \
&& chown 99:100 -R /mcserver /mctemp
# Main script
RUN wget "$INSTALL_SCRIPT" -O /mctemp/install_script.sh \
&& chmod +x /mctemp/install_script.sh
# Directory where data is stored
VOLUME /mcserver
# Run command
CMD [ "/bin/bash", "./mctemp/install_script.sh" ]