mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Add GAMESPY_PORT environment variable
This commit is contained in:
parent
c1c70a53be
commit
70f6ede7b8
2 changed files with 2 additions and 1 deletions
|
@ -38,6 +38,7 @@ RUN useradd -m openmohaa
|
||||||
USER openmohaa
|
USER openmohaa
|
||||||
|
|
||||||
ENV GAME_PORT=12203
|
ENV GAME_PORT=12203
|
||||||
|
ENV GAMESPY_PORT=12300
|
||||||
|
|
||||||
COPY "entrypoint.sh" "/usr/local/bin/entrypoint.sh"
|
COPY "entrypoint.sh" "/usr/local/bin/entrypoint.sh"
|
||||||
WORKDIR "/usr/local/share/mohaa"
|
WORKDIR "/usr/local/share/mohaa"
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
# It's amazing that with Docker, one can't put environment variables in the array of the ENTRYPOINT command
|
# It's amazing that with Docker, one can't put environment variables in the array of the ENTRYPOINT command
|
||||||
|
|
||||||
/usr/local/games/openmohaa/lib/openmohaa/omohaaded +set fs_homepath home +set dedicated 2 +set net_port $GAME_PORT:-12203 $@
|
/usr/local/games/openmohaa/lib/openmohaa/omohaaded +set fs_homepath home +set dedicated 2 +set net_port $GAME_PORT:-12203 +set net_gamespy_port $GAMESPY_PORT:-12300 $@
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue