Skip to content

Commit

Permalink
changed dockerfile to debian jessie, added node
Browse files Browse the repository at this point in the history
  • Loading branch information
hexparrot committed Mar 2, 2016
1 parent b27c8fa commit b49c634
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:5
FROM debian:jessie
MAINTAINER William Dizon <[email protected]>

#arbitrarily assigned ports for 5 servers. change if you need to.
Expand All @@ -12,25 +12,35 @@ RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/s

#update and accept all prompts
RUN apt-get update && apt-get install -y \
build-essential \
supervisor \
rdiff-backup \
screen \
openjdk-8-jre-headless \
rsync \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
curl \
rlwrap

#install node from nodesource
RUN curl https://deb.nodesource.com/node_4.x/pool/main/n/nodejs/nodejs_4.3.1-1nodesource1~jessie1_amd64.deb > node.deb \
&& dpkg -i node.deb \
&& rm node.deb

#create mineos directories
RUN mkdir -p /var/games/minecraft \
&& mkdir -p /usr/games/minecraft

#download mineos and setup supervisor init
RUN cd /usr/games/minecraft \
&& git clone https://github.com/hexparrot/mineos-node.git . \
&& git clone --depth=1 https://github.com/hexparrot/mineos-node.git . \
&& sh generate-sslcert.sh \
&& npm install \
&& chmod +x webui.js mineos_console.js service.js \
&& cp init/supervisor_conf /etc/supervisor/conf.d/mineos.conf \
&& sed -i -e 's/\/usr\/bin\/node/\/usr\/local\/bin\/node/' /etc/supervisor/conf.d/mineos.conf
&& cp init/supervisor_conf /etc/supervisor/conf.d/mineos.conf

RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

VOLUME /var/games/minecraft
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]

0 comments on commit b49c634

Please sign in to comment.