Updated dockerfile to clean alpine image and add python + required libs to make work again. Fixed requirements.txt to fixed twisted version

This commit is contained in:
geoffrey stoel 2017-10-05 00:27:21 +02:00
parent 4b9db9570c
commit f845b3c8af
2 changed files with 12 additions and 7 deletions

View file

@ -10,17 +10,16 @@
#
# https://github.com/evennia/evennia/wiki/Running%20Evennia%20in%20Docker
#
FROM python:2.7-alpine
MAINTAINER Dan Feeney "feend78@gmail.com"
FROM alpine
# install compilation environment
RUN apk update && apk add gcc musl-dev
RUN apk update && apk add python py-pip python-dev py-setuptools gcc musl-dev jpeg-dev zlib-dev
# add the project source
ADD . /usr/src/evennia
# install dependencies
RUN pip install -e /usr/src/evennia
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
ONBUILD ADD . /usr/src/game
@ -31,10 +30,16 @@ ONBUILD ADD . /usr/src/game
VOLUME /usr/src/game
# set the working directory
WORKDIR /usr/src/game
WORKDIR /usr/src
# init evennia
RUN evennia --init mygame
WORKDIR /usr/src/mygame
RUN evennia migrate
# startup command
CMD ["evennia", "-i", "start"]
# ENTRYPOINT ["evennia", "start"]
# expose the telnet, webserver and websocket client ports
EXPOSE 4000 4001 4005

View file

@ -1,7 +1,7 @@
# Evennia dependencies, for Linux/Mac platforms
django > 1.10, < 2.0
twisted >= 16.0.0
twisted == 16.0.0
mock >= 1.0.1
pillow == 2.9.0
pytz