Dockerfile 849 B

12345678910111213141516171819202122232425262728
  1. FROM debian:10.3-slim
  2. WORKDIR /opt/
  3. ENV LD_LIBRARY_PATH=. EULA=TRUE
  4. # download+unpack & move configs to 1 folder
  5. # this allows for less volumes
  6. # ty @Roemer for the idea
  7. RUN apt update && \
  8. apt -y upgrade && \
  9. apt install -y curl unzip && \
  10. curl -sSL https://minecraft.azureedge.net/bin-linux/bedrock-server-1.14.60.5.zip -o minecraft.zip && \
  11. unzip minecraft.zip && \
  12. apt -y remove unzip && \
  13. apt -y autoremove --purge && \
  14. apt -y clean && \
  15. rm -rf /var/lib/apt/lists/* && \
  16. rm minecraft.zip && \
  17. mkdir config && \
  18. mv server.properties config && \
  19. mv permissions.json config && \
  20. mv whitelist.json config && \
  21. ln -s config/server.properties server.properties && \
  22. ln -s config/permissions.json permissions.json && \
  23. ln -s config/whitelist.json whitelist.json
  24. CMD ./bedrock_server