Files
minecraft/neoforged/Dockerfile
T
fithwum 8cded03c86
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 16s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push bukkit (push) Failing after 11s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Failing after 14s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push forge (push) Failing after 14s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push neoforged (push) Failing after 11s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push quilt (push) Failing after 13s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing (push) Failing after 13s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Failing after 11s
Build and Push Minecraft Docker Images on Debian-base update / Docker prune (vm-docker-build2) (push) Successful in 3s
Build and Push Minecraft Docker Images on Debian-base update / generate-changelogs (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / generate-build-info (push) Has been skipped
update to select java version
2026-07-02 19:34:16 -07:00

47 lines
1.3 KiB
Docker

FROM gitea.fithwum.tech/fithwum/debian-base:trixie
LABEL maintainer="fithwum"
ENV ACCEPT_EULA=""
ENV GAME_PORT=""
ENV NEOFORGED_VERSION=""
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/neoforged/Install_Script.sh
# Install java & Dependencies.
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends bzip2 lsb-release screen jq openjdk-"$JAVA_VERSION"-jre-headless \
&& apt-get -y --fix-broken install \
&& apt-get -y autoclean \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates -f;
# Install java
# RUN wget https://packages.microsoft.com/config/debian/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
# && dpkg -i packages-microsoft-prod.deb \
# && apt-get update && apt-get install -y msopenjdk-21 \
# && apt-get -y update && apt-get -y --fix-broken install
# Folder creation.
RUN mkdir -p /MCserver /MCtemp \
&& chmod 777 -R /MCserver /MCtemp \
&& chown 99:100 -R /MCserver /MCtemp \
&& cd /MCserver
ADD "$INSTALL_SCRIPT" /MCtemp
RUN chmod +x /MCtemp/Install_Script.sh
# Directory where data is stored
VOLUME /MCserver
# 25565 Default.
EXPOSE 25565/udp 25565/tcp
# Run command
CMD [ "/bin/bash", "./MCtemp/Install_Script.sh" ]