mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
commit
9b7c21e14d
1 changed files with 28 additions and 0 deletions
28
Dockerfile
Normal file
28
Dockerfile
Normal 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
|
Loading…
Reference in a new issue