diff --git a/Dockerfile b/Dockerfile index 0b33b3d..4d13b8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,7 @@ EXPOSE 19005 $PORT_NUM COPY . /usr/src/server WORKDIR /usr/src/server -RUN echo server-port=$PORT_NUM >> server.properties -RUN echo " Name: $CS_NAME" >> plugins/gFeatures/Config.yml +ENTRYPOINT ["/init.sh", $PORT_NUM, $CS_NAME] RUN mkdir /data RUN mkdir /data/logs diff --git a/init.sh b/init.sh new file mode 100755 index 0000000..a9366cc --- /dev/null +++ b/init.sh @@ -0,0 +1,5 @@ +#!/bin/sh +PORT_NUM=$1 +CS_NAME=$2 +echo server-port=$PORT_NUM >> server.properties +echo " Name: $CS_NAME" >> plugins/gFeatures/Config.yml