Merge pull request #80 from schmic/master

Allow to define RCON port as well
This commit is contained in:
David Andersen 2017-11-29 14:39:21 -08:00 committed by GitHub
commit 67a0420f06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ FROM frolvlad/alpine-glibc:alpine-3.6
MAINTAINER https://github.com/dtandersen/docker_factorio_server MAINTAINER https://github.com/dtandersen/docker_factorio_server
ENV PORT=34197 \ ENV PORT=34197 \
RCON_PORT=27015 \
VERSION=0.15.40 \ VERSION=0.15.40 \
SHA1=f79a975f6b8c0ee87e2fa60f7d1f7133f332c3ec SHA1=f79a975f6b8c0ee87e2fa60f7d1f7133f332c3ec
@ -20,7 +21,7 @@ RUN mkdir /opt && \
VOLUME /factorio VOLUME /factorio
EXPOSE $PORT/udp 27015/tcp EXPOSE $PORT/udp $RCON_PORT/tcp
COPY ./docker-entrypoint.sh / COPY ./docker-entrypoint.sh /

2
0.15/docker-entrypoint.sh Executable file → Normal file
View File

@ -38,6 +38,6 @@ exec /opt/factorio/bin/x64/factorio \
--server-settings $CONFIG/server-settings.json \ --server-settings $CONFIG/server-settings.json \
--server-whitelist $CONFIG/server-whitelist.json \ --server-whitelist $CONFIG/server-whitelist.json \
--server-banlist $CONFIG/server-banlist.json \ --server-banlist $CONFIG/server-banlist.json \
--rcon-port 27015 \ --rcon-port $RCON_PORT \
--rcon-password "$(cat $CONFIG/rconpw)" \ --rcon-password "$(cat $CONFIG/rconpw)" \
--server-id /factorio/config/server-id.json --server-id /factorio/config/server-id.json