Added Dockerfile

This commit is contained in:
Felix Imobersteg 2015-05-27 15:13:36 +02:00
parent d8b61b0eca
commit 310ed6f916
1 changed files with 28 additions and 0 deletions

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