Skip to content

damyan/minecraft

Repository files navigation

Installation

Docker buildkit is required for multi-arch builds. Unless integrated in docker already, install it:

mkdir -p ~/.docker/cli-plugins
wget https://github.com/docker/buildx/releases/download/${version}/buildx-v{version}.linux-$arch -O ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker buildx create --use

Build and Push

Build and push the multi-arch image

export VERSION=1.ab.c
docker buildx build --platform linux/amd64 --platform linux/arm64 --push . -t damyanyordanov/minecraft-java:$VERSION -f Dockerfile-$VERSION

Clone repo and run minecraft

git clone [email protected]:damyan/minecraft.git mc
cd mc
# adjust image version, if changed
docker-compose up

About

Self-hosted Minecraft server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages