master
EspiDev 7 years ago
parent b9ec5c3296
commit 4ed21420da

@ -13,7 +13,7 @@ EXPOSE 19005 $PORT_NUM
COPY . /usr/src/server COPY . /usr/src/server
WORKDIR /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
RUN mkdir /data/logs RUN mkdir /data/logs

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
PORT_NUM=$1 PORT_NUM=$1
CS_NAME=$2 CS_NAME=$2
echo server-port=$PORT_NUM >> server.properties if [ ! -f "init.lock" ]; then
echo " Name: $CS_NAME" >> plugins/gFeatures/Config.yml echo server-port=$PORT_NUM >> server.properties
echo " Name: $CS_NAME" >> plugins/gFeatures/Config.yml
touch init.lock
fi

Loading…
Cancel
Save