-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a8a7b5
commit 3855e55
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM eclipse-temurin:8u352-b08-jdk | ||
|
||
VOLUME /data | ||
EXPOSE 8080 25565 | ||
|
||
COPY minecraft-server /usr/local/bin/qumine-server | ||
|
||
RUN apt update \ | ||
&& apt install unzip nano \ | ||
&& groupadd -g 4242 -r qumine \ | ||
&& useradd -g 4242 -m -N -r -u 4242 qumine \ | ||
# Tempfix for fabric installer | ||
# && useradd -g 4242 -M -N -r -u 4242 qumine \ | ||
&& mkdir /data \ | ||
&& chown -R qumine:qumine /data \ | ||
&& chmod -R 777 /data \ | ||
&& echo "qumine-server c" > /usr/local/bin/console \ | ||
&& chmod -R 755 /usr/local/bin/qumine-server /usr/local/bin/console | ||
|
||
USER qumine | ||
WORKDIR /data/ | ||
ENTRYPOINT [ "qumine-server", "server"] |