From e484faa73d717e6aae1bef830ab282cf0bff7fbb Mon Sep 17 00:00:00 2001 From: DracoMilesX Date: Tue, 30 Aug 2016 11:52:53 +0200 Subject: [PATCH] Create Dockerfile --- Dockerfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a61bc91 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,44 @@ +FROM ubuntu:latest +MAINTAINER Draco Miles X +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq mysql-server mysql-client -y && apt-get upgrade -y && apt-get dist-upgrade -y +RUN apt-get install -y \ + apt-utils \ + nano \ + build-essential \ + curl \ + lsb-release \ + openssl \ + libssl-dev \ + openssh-server \ + openssh-client \ + sudo \ + python \ + python-dev \ + python-pip \ + python3 \ + python3-dev \ + python3-pip \ + pkg-config \ + autoconf \ + automake \ + libtool \ + curl \ + make \ + g++ \ + unzip \ + supervisor +RUN mkdir -p /var/run/sshd /var/log/supervisor +RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - +RUN apt-get install -y \ + nodejs \ + git +RUN git clone --recursive https://github.com/google/protobuf.git +RUN cd /protobuf && ./autogen.sh && ./configure && make && make check && make install && ldconfig +RUN cd / +RUN git clone --recursive https://github.com/maierfelix/POGOserver.git +RUN chmod +x /POGOserver/run-linux.sh +COPY cfg.js /POGOserver/ +COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf +RUN service mysql start && mysql -u root -e "create database pogosql"; +EXPOSE 22 80 443 3306 3000 +CMD ["/usr/bin/supervisord"]