From 329bb28d9ee8b305f717d4274e6e6215a4d95bff Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 20 Oct 2017 23:10:08 +0200 Subject: [PATCH] Some more docs --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6c60946c61..6ef9b16650 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,19 +30,20 @@ ADD . /usr/src/evennia # install dependencies RUN pip install -e /usr/src/evennia --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org -# add the game source during game builds +# add the game source when rebuilding a new docker image from inside +# a game dir ONBUILD ADD . /usr/src/game # make the game source hierarchy persistent with a named volume. -# during development this is typically superceded by directives in -# docker-compose.yml or the CLI to mount a local directory. +# mount on-disk game location here when using the container +# to just get an evennia environment. VOLUME /usr/src/game # set the working directory WORKDIR /usr/src/game # set bash prompt -ENV PS1 "evennia docker $ " +ENV PS1 "evennia|docker \w $ " # startup a shell when we start the container ENTRYPOINT ["bash"]