Spigot minecraft server in a container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
418 B

FROM ubuntu:bionic
ADD start /start
RUN useradd --uid 1000 mcserver && \
apt-get update && \
apt-get install -y openjdk-11-jre-headless && \
mkdir -p /srv/spigot/ /srv/spigot-default/ && \
chown -R mcserver:mcserver /srv/spigot/ && \
chmod +x /start
ENV MEMLIMIT=1024m
ADD spigot-1.14.4.jar /srv/spigot-default/spigot.jar
ADD eula.txt /srv/spigot-default/
ENTRYPOINT ["/start"]
USER mcserver