-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.ubuntu
27 lines (21 loc) · 1.06 KB
/
Dockerfile.ubuntu
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
FROM ubuntu:latest
MAINTAINER Shaker Qawasmi - github.com/sqawasmi
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y openssh-server supervisor unzip build-essential
RUN useradd unityserver
RUN mkdir -p /var/run/sshd
RUN mkdir -p /var/log/supervisor
RUN mkdir -p /home/unityserver/Production/MasterServer
RUN wget http://unity3d.com/files/master-server/MasterServer-2.0.1f1.zip -O /home/unityserver/MasterServer.zip
RUN unzip /home/unityserver/MasterServer.zip -d /home/unityserver/Production/MasterServer/
RUN chown unityserver.unityserver -R /home/unityserver
ADD ./files/RakNet001.patch /home/unityserver/Production/MasterServer/
ADD ./files/RakNet002.patch /home/unityserver/Production/MasterServer/
ADD ./files/RakNet003.patch /home/unityserver/Production/MasterServer/
RUN cd /home/unityserver/Production/MasterServer/ && patch -p0 -i RakNet001.patch
RUN cd /home/unityserver/Production/MasterServer/ && make
RUN echo 'root:unityserver' |chpasswd
ADD ./files/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 22 23466
CMD ["/usr/bin/supervisord"]