mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update DockerImage for new build structure
This commit is contained in:
parent
86e2722982
commit
b55e961900
1 changed files with 9 additions and 6 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -34,17 +34,19 @@ LABEL maintainer="https://www.evennia.com"
|
|||
|
||||
# install compilation environment
|
||||
RUN apk update && apk add bash gcc jpeg-dev musl-dev procps \
|
||||
libffi-dev openssl-dev zlib-dev gettext
|
||||
libffi-dev openssl-dev zlib-dev gettext \
|
||||
g++ gfortran python3-dev cmake openblas-dev
|
||||
|
||||
# add the files required for pip installation
|
||||
COPY ./pyproject.toml /usr/src/evennia/
|
||||
COPY ./setup.py /usr/src/evennia/
|
||||
COPY ./evennia/VERSION.txt /usr/src/evennia/evennia/
|
||||
COPY ./bin /usr/src/evennia/bin/
|
||||
|
||||
# install dependencies
|
||||
RUN pip install --upgrade pip && pip install -e /usr/src/evennia --trusted-host pypi.python.org
|
||||
RUN pip install cryptography pyasn1 service_identity
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install cryptography pyasn1 service_identity && \
|
||||
pip install -e /usr/src/evennia --trusted-host pypi.python.org && \
|
||||
pip install evennia[extra]
|
||||
|
||||
# add the project source; this should always be done after all
|
||||
# expensive operations have completed to avoid prematurely
|
||||
|
|
@ -63,8 +65,9 @@ VOLUME /usr/src/game
|
|||
# set the working directory
|
||||
WORKDIR /usr/src/game
|
||||
|
||||
# set bash prompt
|
||||
ENV PS1 "evennia|docker \w $ "
|
||||
# set bash prompt and pythonpath to evennia lib
|
||||
ENV PS1 "evennia|docker \w $ "
|
||||
ENV PYTHONPATH /usr/src/evennia
|
||||
|
||||
# create and switch to a non-root user for runtime security
|
||||
# -D - do not set a password
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue