Made alternative docker image style
This commit is contained in:
parent
004d66887c
commit
6871567d78
1 changed files with 19 additions and 16 deletions
35
Dockerfile
35
Dockerfile
|
|
@ -1,19 +1,28 @@
|
|||
#####
|
||||
# Base docker image for running Evennia-based games in a container.
|
||||
#
|
||||
# This Dockerfile creates the evennia/evennia docker image
|
||||
# on DockerHub, which can be used as the basis for creating
|
||||
# an Evennia game within a container. This base image can be
|
||||
# found in DockerHub at https://hub.docker.com/r/evennia/evennia/
|
||||
# Install:
|
||||
# install `docker` (http://docker.com)
|
||||
#
|
||||
# For more information on using it to build a container to run your game, see
|
||||
# Usage:
|
||||
# cd to a folder where you want your game data to be (or where it already is).
|
||||
#
|
||||
# https://github.com/evennia/evennia/wiki/Running%20Evennia%20in%20Docker
|
||||
# docker run -it -p 4000:4000 -p 4001:4001 -p 4005:4005 -v $PWD:/usr/src/game evennia/evennia
|
||||
#
|
||||
# (If your OS does not support $PWD, replace it with the full path to your current
|
||||
# folder).
|
||||
#
|
||||
# You will end up in a shell where the `evennia` command is available. From here you
|
||||
# can install and run the game normally. Use Ctrl-D to exit the evennia docker container.
|
||||
#
|
||||
# The evennia/evennia base image is found on DockerHub and can also be used
|
||||
# as a base for creating your own custom containerized Evennia game. For more
|
||||
# info, see https://github.com/evennia/evennia/wiki/Running%20Evennia%20in%20Docker .
|
||||
#
|
||||
FROM alpine
|
||||
|
||||
# install compilation environment
|
||||
RUN apk update && apk add python py-pip python-dev py-setuptools gcc musl-dev jpeg-dev zlib-dev
|
||||
RUN apk update && apk add python py-pip python-dev py-setuptools gcc musl-dev jpeg-dev zlib-dev bash
|
||||
|
||||
# add the project source
|
||||
ADD . /usr/src/evennia
|
||||
|
|
@ -30,16 +39,10 @@ ONBUILD ADD . /usr/src/game
|
|||
VOLUME /usr/src/game
|
||||
|
||||
# set the working directory
|
||||
WORKDIR /usr/src
|
||||
WORKDIR /usr/src/game
|
||||
|
||||
# init evennia
|
||||
RUN evennia --init mygame
|
||||
|
||||
WORKDIR /usr/src/mygame
|
||||
RUN evennia migrate
|
||||
|
||||
# startup command
|
||||
# ENTRYPOINT ["evennia", "start"]
|
||||
# startup a shell when we start the container
|
||||
ENTRYPOINT ["bash"]
|
||||
|
||||
# expose the telnet, webserver and websocket client ports
|
||||
EXPOSE 4000 4001 4005
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue