diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1090558 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.dockerignore +.git +.gitignore +Dockerfile +server/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c1d4728 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# mcman +server/ +.env diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..355eb22 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM ghcr.io/paradigmmc/mcman:latest as builder +WORKDIR /server +COPY . . +RUN mcman build + +FROM eclipse-temurin:17-alpine +USER 1000:1000 +WORKDIR /server +COPY --from=builder --chown=1000:1000 /server/server/ /server +ENTRYPOINT [ "/server/start.sh" ] \ No newline at end of file diff --git a/config/server.properties b/config/server.properties new file mode 100644 index 0000000..b452be6 --- /dev/null +++ b/config/server.properties @@ -0,0 +1 @@ +server-port=${PORT:25565} \ No newline at end of file diff --git a/server.toml b/server.toml new file mode 100644 index 0000000..5115de3 --- /dev/null +++ b/server.toml @@ -0,0 +1,15 @@ +name = "iptfreedom" +mc_version = "1.19.4" + +[jar] +type = "url" +url = "https://ci.plex.us.org/job/Scissors/job/1.19.4/46/artifact/build/libs/scissors-46.jar" + +[variables] +PORT = "25565" + +[launcher] +aikars_flags = true +proxy_flags = false +eula_args = true +nogui = true