Skip to content

Commit 9f7dd1c

Browse files
committed
Improve Dockerfile
1 parent c27cd14 commit 9f7dd1c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ LABEL authors="Mc8s"
33

44
WORKDIR /app
55

6-
COPY server.jar /app/
7-
COPY eula.txt /app/
6+
COPY server.jar /preset/
7+
COPY eula.txt /preset/
8+
COPY start.sh /exec/
89

9-
ENTRYPOINT ["java", "-jar", "server.jar"]
10+
ENTRYPOINT ["/exec/start.sh"]

start.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
cp /preset/server.jar /app/server.jar
3+
cp /preset/eula.txt /app/eula.txt
4+
java -jar server.jar

0 commit comments

Comments
 (0)