Remove user

This commit is contained in:
JeremyStar™ 2024-01-26 01:48:52 +01:00
parent f45adcc08c
commit 496f53bbf7

View file

@ -3,10 +3,8 @@ LABEL org.opencontainers.image.authors="JeremyStarTM <jeremystartm@staropensourc
RUN pacman -Syu --noconfirm jre17-openjdk jre11-openjdk jre8-openjdk RUN pacman -Syu --noconfirm jre17-openjdk jre11-openjdk jre8-openjdk
RUN mkdir /app RUN mkdir /app
RUN useradd -U -m mcserver
ADD entrypoint.sh /app/entrypoint.sh ADD entrypoint.sh /app/entrypoint.sh
STOPSIGNAL SIGTERM STOPSIGNAL SIGTERM
EXPOSE 25565 25565/tcp EXPOSE 25565 25565/tcp
USER mcserver:mcserver
ENTRYPOINT ["/sbin/bash", "/app/entrypoint.sh"] ENTRYPOINT ["/sbin/bash", "/app/entrypoint.sh"]