Dockerfile~ 691 B

123456789101112131415161718192021222324
  1. FROM openjdk:8-jre-alpine
  2. WORKDIR /home/minecraft
  3. ADD launch.sh /home/minecraft/launch.sh
  4. ADD start-minecraft.sh /home/minecraft/start-minecraft.sh
  5. ADD base.properties /home/minecraft/base.properties
  6. RUN apk add --no-cache su-exec python python-dev py2-pip bash \
  7. && addgroup -g 1000 minecraft \
  8. && adduser -D -u 1000 -G minecraft -h /home/minecraft minecraft \
  9. && pip install mcstatus \
  10. && apk del python-dev \
  11. && rm -rf /var/cache/apk/* \
  12. && chown minecraft:minecraft /home/minecraft/*
  13. CMD ["/home/minecraft/launch.sh"]
  14. ENV UID=1000 GIU=1000 \
  15. MOTD="A Minecraft Server running under Docker" \
  16. LEVEL=world PVP=true \
  17. SERVER=server.jar \
  18. JVM_XX_OPTS="-XX:+UseG1GC" MEMORY="1G"