MCServerDocker/Dockerfile

13 lines
390 B
Text
Raw Normal View History

2024-01-25 23:12:09 +01:00
FROM ghcr.io/archlinux/archlinux:latest
LABEL org.opencontainers.image.authors="JeremyStarTM <jeremystartm@staropensource.de>"
RUN pacman -Syu --noconfirm jre17-openjdk jre11-openjdk jre8-openjdk
RUN mkdir /app
RUN useradd -U -m mcserver
ADD entrypoint.sh /app/entrypoint.sh
STOPSIGNAL SIGTERM
EXPOSE 25565 25565/tcp
USER mcserver:mcserver
ENTRYPOINT ["/sbin/bash", "/app/entrypoint.sh"]