Dockerfile 998 B

123456789101112131415161718192021222324252627282930313233
  1. # To use this Docker image, make sure you set up the mounts properly.
  2. #
  3. # The Minecraft server files are expected at
  4. # /home/minecraft/server
  5. #
  6. # The Minecraft-Overviewer render will be output at
  7. # /home/minecraft/render
  8. FROM debian:latest
  9. MAINTAINER Mark Ide Jr (https://www.mide.io)
  10. RUN apt-get update && \
  11. apt-get install -y wget gnupg && \
  12. echo "deb http://overviewer.org/debian ./" >> /etc/apt/sources.list && \
  13. wget -O - https://overviewer.org/debian/overviewer.gpg.asc | apt-key add - && \
  14. apt-get update && \
  15. apt-get install -y minecraft-overviewer && \
  16. apt-get clean && \
  17. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
  18. useradd -m minecraft && \
  19. mkdir -p /home/minecraft/render /home/minecraft/server
  20. COPY config/config.py /home/minecraft/config.py
  21. COPY entrypoint.sh /home/minecraft/entrypoint.sh
  22. RUN chown minecraft:minecraft -R /home/minecraft/
  23. WORKDIR /home/minecraft/
  24. USER minecraft
  25. CMD ["bash", "/home/minecraft/entrypoint.sh"]