-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 856 Bytes
/
Dockerfile
File metadata and controls
32 lines (26 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM debian:10
RUN \
apt-get update \
&& apt-get upgrade -qy \
&& apt-get install -qy \
git \
locales \
python3 \
curl \
build-essential \
libjpeg-dev \
python3-dev \
python3-pip \
postgresql-server-dev-11
RUN mkdir /rolling
COPY requirements.txt /rolling/requirements.txt
RUN pip3 install --upgrade pip setuptools
RUN cd /rolling && pip3 install -r requirements.txt
COPY rolling /rolling/rolling
COPY guilang /rolling/guilang
COPY setup.py /rolling/setup.py
COPY server.ini.tpl /game/server.ini
RUN cd /rolling && python3 setup.py install
VOLUME ["/game", "/zones", "/world", "/db"]
EXPOSE 5000
CMD ["/usr/local/bin/rolling-server","--host", "0.0.0.0", "--port", "5000", "--server-db-path", "/db/server.db", "/world/map.txt", "/zones", "/game", "/game/server.ini"]