Skip to content

Commit

Permalink
Bot docker: create & run as 'bot' user with UID 999
Browse files Browse the repository at this point in the history
OS users will need to be set up to match so that file
permissions will line up.
  • Loading branch information
DanVanAtta committed Jul 24, 2024
1 parent 2d23af8 commit 7b05f40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions game-app/game-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ ENV MAPS_FOLDER=/downloadedMaps
ENV EXIT_ON_GAME_END=FALSE

RUN mkdir $MAPS_FOLDER
RUN useradd -u 999 bot
RUN chown bot:root $MAPS_FOLDER
USER bot

ADD build/libs/triplea-game-headless.jar /
CMD java \
Expand Down

0 comments on commit 7b05f40

Please sign in to comment.