change and add testing versions
Some checks failed
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Failing after 1s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Has been skipped
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
Some checks failed
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Failing after 1s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Has been skipped
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
This commit is contained in:
43
testing-vanilla/Dockerfile
Normal file
43
testing-vanilla/Dockerfile
Normal file
@@ -0,0 +1,43 @@
|
||||
FROM gitea.fithwum.tech/fithwum/debian-base:bookworm
|
||||
LABEL maintainer="fithwum"
|
||||
|
||||
# Environment Variables
|
||||
ENV ACCEPT_EULA=""
|
||||
ENV GAME_PORT=""
|
||||
ENV MC_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 Dependencies.
|
||||
RUN apt-get -y update \
|
||||
&& 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 \
|
||||
&& 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" ]
|
||||
Reference in New Issue
Block a user