updates to java
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 29s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Successful in 34s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push bukkit (push) Successful in 34s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push forge (push) Successful in 35s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push neoforged (push) Successful in 35s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing (push) Successful in 33s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push quilt (push) Successful in 33s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Successful in 28s
Build and Push Minecraft Docker Images on Debian-base update / generate-changelogs (push) Successful in 8s
Build and Push Minecraft Docker Images on Debian-base update / generate-build-info (push) Has been cancelled
Build and Push Minecraft Docker Images on Debian-base update / Docker prune (vm-docker-build2) (push) Successful in 4s

This commit is contained in:
2026-07-03 05:23:36 -07:00
parent ddd8eba8c9
commit 841bad4a7c
14 changed files with 169 additions and 50 deletions
+1 -7
View File
@@ -15,19 +15,13 @@ ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/maste
# 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 install -y --no-install-recommends bzip2 lsb-release screen jq \
&& 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 \
+23
View File
@@ -10,6 +10,29 @@ EULA_MARKER=$MC_DIR/.eula_accepted
INSTALLER_FILE=https://cdn.getbukkit.org/craftbukkit/craftbukkit-$MC_VERSION.jar
MC_RUN_FILE=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/bukkit/run.sh
# Install java
if dpkg -s openjdk-$JAVA_VERSION-jre-headless &> /dev/null
then
echo "INFO ! openjdk-$JAVA_VERSION-jre-headless installed ... moving on."
else
echo " "
echo "WARNING ! openjdk-$JAVA_VERSION-jre-headless not installed ... will install now."
apt-get update
apt-get --no-install-recommends -y install openjdk-$JAVA_VERSION-jre-headless
fi
# if dpkg -s msopenjdk-$JAVA_VERSION &> /dev/null
# then
# echo "INFO ! msopenjdk-$JAVA_VERSION installed ... moving on."
# else
# echo " "
# echo "WARNING ! msopenjdk-$JAVA_VERSION not installed ... will install now."
# 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-25 \
# apt-get -y update && apt-get -y --fix-broken install
# fi
# Main install (Debian).
# Check for server files and download if needed.
if [ -e $MC_DIR/craftbukkit-$MC_VERSION.jar ]