Skip to content

Commit

Permalink
Bot docker: Parameterize port number (#12763)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanVanAtta authored Jul 24, 2024
1 parent e73fdec commit 2d23af8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions game-app/game-headless/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM openjdk:11-jre-slim-buster

EXPOSE 4000
ENV BOT_PORT_NUMBER=4000
EXPOSE $BOT_PORT_NUMBER

ENV BOT_NAME=BotDocker01
ENV LOBBY_URI=http://localhost:3000
ENV BOT_MAX_MEMORY="256M"
Expand All @@ -16,7 +18,7 @@ CMD java \
-Xmx$BOT_MAX_MEMORY \
-Xss$BOT_XSS \
-Dtriplea.name=$BOT_NAME \
-Dtriplea.port=4000 \
-Dtriplea.port=$BOT_PORT_NUMBER \
-Dtriplea.lobby.uri=$LOBBY_URI \
-Dtriplea.exit.on.game.end=$EXIT_ON_GAME_END \
-jar triplea-game-headless.jar

0 comments on commit 2d23af8

Please sign in to comment.