Crafty Controller image built on Alpine Linux instead of Ubuntu to minimize its footprint
224
This is a docker image based on Alpine Linux for Crafty Controller. Instead of using Ubuntu as base image, this docker image uses Alpine Linux (in its python flavour) and a staged Dockerfile to reduce space and memory footprint.
You can pull this image either from Docker hub or GitHub Packages by using docker compose or docker run.
You can also build your image by cloning the repository over at GitHub.
Instead of installing OpenJDK Java runtimes, this image uses Adoptium Temurin JRE. Beware that automated path recognition of JREs in Crafty could brake, and must resort to manually specify the paths.
version: '3'
services:
crafty:
container_name: crafty-alpine_container
image: docker.io/stevelonny/crafty-alpine:latest
#image: ghcr.io/stevelonny/crafty-alpine:latest
restart: unless-stopped
environment:
- TZ=Etc/UTC
ports:
- "8000:8000" # HTTP
- "8443:8443" # HTTPS
- "8123:8123" # DYNMAP
- "19132:19132/udp" # BEDROCK
- "25500-25600:25500-25600" # MC SERV PORT RANGE
volumes:
- ./docker/backups:/crafty/backups
- ./docker/logs:/crafty/logs
- ./docker/servers:/crafty/servers
- ./docker/config:/crafty/app/config
- ./docker/import:/crafty/import
$ docker run \
--name crafty-alpine_container \
--detach \
--restart unless-stopped \
-p 8000:8000 \
-p 8443:8443 \
-p 8123:8123 \
-p 19132:19132/udp \
-p 25500-25600:25500-25600 \
-e TZ=Etc/UTC \
-v "/$(pwd)/docker/backups:/crafty/backups" \
-v "/$(pwd)/docker/logs:/crafty/logs" \
-v "/$(pwd)/docker/servers:/crafty/servers" \
-v "/$(pwd)/docker/config:/crafty/app/config" \
-v "/$(pwd)/docker/import:/crafty/import" \
docker.io/stevelonny/crafty-alpine:latest
#ghcr.io/stevelonny/crafty-alpine:latest
Content type
Image
Digest
sha256:27f39b530…
Size
220 MB
Last updated
over 3 years ago
docker pull stevelonny/crafty-alpine