forked from shuieryin/wechat_mud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (19 loc) · 939 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM shuieryin/erlang:19.2
MAINTAINER Shuieryin <shuieryin@gmail.com>
LABEL "version"="0.3.0" \
"description"="Wechat mud game." \
"author"="Shuieryin"
WORKDIR /root/workspaces
#Install & Run wechat_mud
RUN git clone https://github.com/shuieryin/wechat_mud.git ;\
cd wechat_mud ;\
git config --global user.email "shuieryin@gmail.com" ;\
git config --global user.name "shuieryin" ;\
make
CMD ["/usr/sbin/init"]
#Create container with ssh:
# docker run --privileged -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name=wechat_mud --hostname=wechat_mud -p 13579:13579 -p 14369:4369 -p 32:22 shuieryin/wechat_mud:0.1.2
#Change root password:
# docker exec -ti wechat_mud passwd
#Create container without ssh:
# docker run -ti --link starbound:starbound.local --name=wechat_mud --hostname=wechatmud.local -p 13579:13579 -p 4369:4369 -v /home/shuieryin/workspaces/wechat_mud:/root/workspaces/wechat_mud shuieryin/wechat_mud:latest /bin/bash