mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-27 03:18:24 +01:00
Merge pull request #80 from schmic/master
Allow to define RCON port as well
This commit is contained in:
commit
67a0420f06
@ -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
2
0.15/docker-entrypoint.sh
Executable file → Normal 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
|
||||||
|
Loading…
Reference in New Issue
Block a user