@ -13,7 +13,7 @@ EXPOSE 19005 $PORT_NUM
COPY . /usr/src/server
WORKDIR /usr/src/server
ENTRYPOINT ["/init.sh", $PORT_NUM, $CS_NAME]
ENTRYPOINT ["./init.sh", $PORT_NUM, $CS_NAME]
RUN mkdir /data
RUN mkdir /data/logs
@ -1,5 +1,8 @@
#!/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
touch init.lock
fi