Initial commit

This commit is contained in:
Laszlo Uyttersprot
2026-01-28 19:43:07 +01:00
commit 2ca337e702
7 changed files with 43 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
server
out

7
Dockerfiles/JRE17 Normal file
View File

@@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk --no-cache add openjdk17-jre
WORKDIR /data
CMD ["sh", "-c", "java $ARGS -jar server.jar"]

7
Dockerfiles/JRE21 Normal file
View File

@@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk --no-cache add openjdk21-jre
WORKDIR /data
CMD ["sh", "-c", "java $ARGS -jar server.jar"]

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
# SimpleMCDocker
## import image
```
```

3
buildJRE17.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker build --no-cache=true -f ./Dockerfiles/JRE17 -t registry.internal/rankzy/simplemcserver:jre17
docker push registry.internal/rankzy/simplemcserver:jre17

3
buildJRE21.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker build --no-cache=true -f ./Dockerfiles/JRE21 -t registry.internal/rankzy/simplemcserver:jre21 .
docker push registry.internal/rankzy/simplemcserver:jre21

14
docker-compose.yaml Normal file
View File

@@ -0,0 +1,14 @@
services:
SimpleMCServer:
image: rankzy/simplemcserver:jre17
stdin_open: true
tty: true
stop_signal: SIGINT
restart: "no"
ports:
- "25565:25565"
- "25575:25575"
volumes:
- ./data:/data
environment:
- ARGS=-Xmx8G -Xms8G -XX:+DisableExplicitGC -XX:+UseG1GC