mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-07 11:17:23 +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
|
||||
|
||||
ENV PORT=34197 \
|
||||
RCON_PORT=27015 \
|
||||
VERSION=0.15.40 \
|
||||
SHA1=f79a975f6b8c0ee87e2fa60f7d1f7133f332c3ec
|
||||
|
||||
@ -20,7 +21,7 @@ RUN mkdir /opt && \
|
||||
|
||||
VOLUME /factorio
|
||||
|
||||
EXPOSE $PORT/udp 27015/tcp
|
||||
EXPOSE $PORT/udp $RCON_PORT/tcp
|
||||
|
||||
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-whitelist $CONFIG/server-whitelist.json \
|
||||
--server-banlist $CONFIG/server-banlist.json \
|
||||
--rcon-port 27015 \
|
||||
--rcon-port $RCON_PORT \
|
||||
--rcon-password "$(cat $CONFIG/rconpw)" \
|
||||
--server-id /factorio/config/server-id.json
|
||||
|
Loading…
Reference in New Issue
Block a user