rad-docker/Dockerfile

29 lines
549 B
Docker
Raw Normal View History

2021-05-08 21:40:32 +00:00
FROM java
EXPOSE 25565
VOLUME /data
# Prepare
RUN mkdir /minecraft && \
mkdir -p /data
# useradd -ms /bin/bash minecraft && \
# chown minecraft /minecraft && \
# chown minecraft /data
# USER minecraft
WORKDIR /minecraft
# Download files
RUN wget https://media.forgecdn.net/files/3255/643/RAD-Serverpack-1.45.zip
# Unpack
RUN unzip RAD-Serverpack-1.45.zip -d . && \
cp -r RAD-Serverpack-1.45/* . && \
rm -r RAD-Serverpack-1.45.zip RAD-Serverpack-1.45
COPY start.sh /minecraft/start.sh
ENTRYPOINT /minecraft/start.sh