test
Some checks failed
Build and Push Minecraft Docker Images / build (push) Failing after 20s

This commit is contained in:
2025-07-03 06:27:11 -07:00
parent 8e5185ea43
commit 66df042cc0
2 changed files with 17 additions and 18 deletions

View File

@@ -35,8 +35,4 @@ RUN chmod +x /MCtemp/install_script.sh
VOLUME /MCserver VOLUME /MCserver
# Run command # Run command
CMD [ "/bin/bash", "./MCtemp/install_script.sh" ] CMD [ "/bin/bash", "./MCtemp/install_script.sh" ]
#jkldfhgkldsfg

View File

@@ -12,28 +12,31 @@ ENV XMN_SIZE=""
# URL's for files # URL's for files
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/minecraft/refs/heads/master/vanilla/install_script.sh ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/minecraft/refs/heads/master/vanilla/install_script.sh
# Install java-17 & Dependencies. # Install Dependencies.
RUN apt-get -y update && apt-get -y autoclean && apt-get -y autoremove \ RUN apt-get -y update \
&& apt-get install -y wget && apt-get install -y --no-install-recommends wget screen bzip2 jq \
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ && apt-get -y autoclean \
&& dpkg -i packages-microsoft-prod.deb && apt-get -y autoremove \
RUN apt-get -y update && apt-get -y --fix-broken install \
&& apt-get install -y --no-install-recommends msopenjdk-21 screen bzip2 jq \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates -f; && update-ca-certificates -f;
# Install java
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& apt-get install -y --no-install-recommends msopenjdk-21 \
&& apt-get -y update && apt-get -y --fix-broken install
# Folder creation. # Folder creation.
RUN mkdir -p /MCserver /MCtemp \ RUN mkdir -p /MCserver /MCtemp \
&& chmod 777 -R /MCserver /MCtemp \ && chmod 777 -R /MCserver /MCtemp \
&& chown 99:100 -R /MCserver /MCtemp && chown 99:100 -R /MCserver /MCtemp
ADD "$INSTALL_SCRIPT" /MCtemp
RUN chmod +x /MCtemp/install_script.sh # Main script
RUN wget "$INSTALL_SCRIPT" -O /MCtemp/install_script.sh \
&& chmod +x /MCtemp/install_script.sh
# Directory where data is stored # Directory where data is stored
VOLUME /MCserver VOLUME /MCserver
# Run command # Run command
CMD [ "/bin/bash", "./MCtemp/install_script.sh" ] CMD [ "/bin/bash", "./MCtemp/install_script.sh" ]
#asldkhjfg;kljagsfcc