diff --git a/Dockerfile b/Dockerfile index ed18f02..f281d5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ WORKDIR /usr/src/server RUN chmod +x init.sh -ENTRYPOINT exec ./init.sh $PORT_NUM $CS_NAME +ENTRYPOINT ["./init.sh"] RUN mkdir /data RUN mkdir /data/logs diff --git a/init.sh b/init.sh index 2187428..770fdec 100755 --- a/init.sh +++ b/init.sh @@ -1,6 +1,4 @@ #!/bin/sh -PORT_NUM=$1 -CS_NAME=$2 if [ ! -f "init.lock" ]; then echo server-port=$PORT_NUM >> server.properties echo " Name: $CS_NAME" >> plugins/gFeatures/Config.yml