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.
 
 
 

20 lines
418 B

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