mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-10 12:47:24 +01:00
Allow to define RCON port as well
This commit is contained in:
parent
bc74c61fc0
commit
ca3a66ca2f
@ -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.37 \
|
VERSION=0.15.37 \
|
||||||
SHA1=f2a05ee3c0cbe1d7fe5f8928a337b7133aaa70fc
|
SHA1=f2a05ee3c0cbe1d7fe5f8928a337b7133aaa70fc
|
||||||
|
|
||||||
@ -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