Skip to content

Commit

Permalink
Improve Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-be committed Dec 9, 2023
1 parent c27cd14 commit 9f7dd1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ LABEL authors="Mc8s"

WORKDIR /app

COPY server.jar /app/
COPY eula.txt /app/
COPY server.jar /preset/
COPY eula.txt /preset/
COPY start.sh /exec/

ENTRYPOINT ["java", "-jar", "server.jar"]
ENTRYPOINT ["/exec/start.sh"]
4 changes: 4 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
cp /preset/server.jar /app/server.jar
cp /preset/eula.txt /app/eula.txt
java -jar server.jar

0 comments on commit 9f7dd1c

Please sign in to comment.