Merge pull request #108 from n3r0-ch/master

Added Dockerfile
This commit is contained in:
ZeroNet 2015-05-27 15:44:37 +02:00
commit 9b7c21e14d

28
Dockerfile Normal file
View file

@ -0,0 +1,28 @@
FROM ubuntu:14.04
MAINTAINER Felix Imobersteg <felix@whatwedo.ch>
#Base settings
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
#Update package lists
RUN apt-get update -y
#Install ZeroNet deps
RUN apt-get install msgpack-python python-gevent python-pip -y
RUN pip install msgpack-python --upgrade
#Add Zeronet source
ADD . /root
#Slimming down Docker containers
RUN apt-get clean -y
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#Set upstart command
CMD cd /root && python zeronet.py --ui_ip 0.0.0.0
#Expose ports
EXPOSE 43110
EXPOSE 15441