This commit is contained in:
2023-11-13 06:17:30 -08:00
parent fd75feed78
commit 7c8cc1e4fa
7 changed files with 160 additions and 7 deletions

34
bedrock/Dockerfile Normal file
View File

@@ -0,0 +1,34 @@
FROM fithwum/debian-base:bullseye
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://gitlab.fithwum.tech/fithwum/minecraft/-/raw/master/bedrock/install_script.sh
# Install java-17 & Dependencies.
RUN apt-get -y update \
&& apt-get -y --fix-broken install \
&& apt-get install -y software-properties-common screen jq curl \
&& apt-get clean \
&& 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
ADD "$INSTALL_SCRIPT" /MCtemp
RUN chmod +x /MCtemp/install_script.sh
# Directory where data is stored
VOLUME /MCserver
# Run command
CMD [ "/bin/bash", "./MCtemp/install_script.sh" ]