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:
parent
4b9db9570c
commit
f845b3c8af
2 changed files with 12 additions and 7 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -10,17 +10,16 @@
|
||||||
#
|
#
|
||||||
# https://github.com/evennia/evennia/wiki/Running%20Evennia%20in%20Docker
|
# https://github.com/evennia/evennia/wiki/Running%20Evennia%20in%20Docker
|
||||||
#
|
#
|
||||||
FROM python:2.7-alpine
|
FROM alpine
|
||||||
MAINTAINER Dan Feeney "feend78@gmail.com"
|
|
||||||
|
|
||||||
# install compilation environment
|
# 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 the project source
|
||||||
ADD . /usr/src/evennia
|
ADD . /usr/src/evennia
|
||||||
|
|
||||||
# install dependencies
|
# 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
|
# add the game source during game builds
|
||||||
ONBUILD ADD . /usr/src/game
|
ONBUILD ADD . /usr/src/game
|
||||||
|
|
@ -31,10 +30,16 @@ ONBUILD ADD . /usr/src/game
|
||||||
VOLUME /usr/src/game
|
VOLUME /usr/src/game
|
||||||
|
|
||||||
# set the working directory
|
# 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
|
# startup command
|
||||||
CMD ["evennia", "-i", "start"]
|
# ENTRYPOINT ["evennia", "start"]
|
||||||
|
|
||||||
# expose the telnet, webserver and websocket client ports
|
# expose the telnet, webserver and websocket client ports
|
||||||
EXPOSE 4000 4001 4005
|
EXPOSE 4000 4001 4005
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Evennia dependencies, for Linux/Mac platforms
|
# Evennia dependencies, for Linux/Mac platforms
|
||||||
|
|
||||||
django > 1.10, < 2.0
|
django > 1.10, < 2.0
|
||||||
twisted >= 16.0.0
|
twisted == 16.0.0
|
||||||
mock >= 1.0.1
|
mock >= 1.0.1
|
||||||
pillow == 2.9.0
|
pillow == 2.9.0
|
||||||
pytz
|
pytz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue