Dockerfile using my Spigot builder image to spin up a server instance.
The Spigot server.properties
file is generated dynamically by the entrypoint each time the container is started. In the case a variable is not provided, safe defaults are interpolated and used.
... via docker container run
docker container run -p 25565:25565 -e SPIGOT_AGREE_EULA=true kawaii/spigot-server:1.15.2
... via docker stack deploy
or docker-compose
services:
spigot:
environment:
SPIGOT_AGREE_EULA: 'true'
SPIGOT_LEVEL_NAME: dockercraft
image: kawaii/spigot-server:1.15.2
ports:
- 0.0.0.0:25565:25565/tcp
version: '3.7'
... via docker build
docker build \
--build-arg BUILD_AUTHORS="Kane 'kawaii' Valentine <[email protected]>" \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg SPIGOT_VERSION=1.15.2 \
--tag kawaii/spigot-server:1.15.2 \
$PWD
To be completed soon™.
To be completed soon™.