Update the Dockerfile for readability

- Make the download/verify section more readable
- Add JVM_OPTS to CMD
- Use ARG EULA during the build
- Update build instructions in README
This commit is contained in:
2024-05-10 03:19:58 -04:00
parent 08fc5d16c8
commit 0c19cc1913
2 changed files with 21 additions and 15 deletions

View File

@@ -4,7 +4,9 @@ This Dockerfile sets up a Minecraft server based on Debian stable. WIP.
To test image creation, run:
```
docker build . -t minecraft:vanilla; docker run -d minecraft:vanilla
docker build --build-arg EULA=true -t minecraft . && \
docker run -d --name minecraft --rm minecraft && \
docker logs -f minecraft
```
## Copyright and License