forked from HashiCraft/Docker-Minecraft-Server-Fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (29 loc) · 1 KB
/
Makefile
File metadata and controls
33 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DOCKER_NAME=hashicraft/minecraft
MINECRAFT_VERSION=1.21.1
FABRIC_INSTALLER_VERSION=1.0.1
RCON_CLI_VERSION=1.6.8
DOCKER_VERSION=v$(MINECRAFT_VERSION)-fabric
build:
docker build -t ${DOCKER_NAME}:${DOCKER_VERSION} \
--build-arg MINECRAFT_VERSION=${MINECRAFT_VERSION} \
--build-arg FABRIC_INSTALLER_VERSION=${FABRIC_INSTALLER_VERSION} \
--build-arg RCON_CLI_VERSION=${RCON_CLI_VERSION} \
--no-cache .
build_and_push: build
docker push ${DOCKER_NAME}:${DOCKER_VERSION}
ngrok:
ngrok tcp 25565
build_multi:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multi || true
docker buildx use multi
docker buildx inspect --bootstrap
docker buildx build --platform linux/arm64,linux/amd64 \
-t ${DOCKER_NAME}:${DOCKER_VERSION} \
--build-arg MINECRAFT_VERSION=${MINECRAFT_VERSION} \
--build-arg FABRIC_INSTALLER_VERSION=${FABRIC_INSTALLER_VERSION} \
--build-arg RCON_CLI_VERSION=${RCON_CLI_VERSION} \
-f ./Dockerfile \
. \
--push
docker buildx rm multi