mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-18 07:40:42 +08:00
44 lines
1.1 KiB
Docker
44 lines
1.1 KiB
Docker
############################################################
|
|
# Dockerfile to build kademlia container image
|
|
# Based on Ubuntu
|
|
############################################################
|
|
|
|
# Set the base image to Ubuntu
|
|
FROM ubuntu
|
|
|
|
# File Author / Maintainer
|
|
MAINTAINER Muneeb Ali (@muneeb)
|
|
|
|
# Update the repository sources list
|
|
RUN apt-get dist-upgrade
|
|
|
|
################## BEGIN INSTALLATION ######################
|
|
|
|
# Add the package verification key
|
|
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
|
|
|
|
# Update the repository sources list once more
|
|
RUN apt-get update
|
|
RUN apt-get -y upgrade
|
|
|
|
# Install packages
|
|
RUN apt-get install -y git
|
|
RUN apt-get install -y python-pip
|
|
RUN apt-get install -y python-dev
|
|
|
|
# Create the default directory
|
|
RUN mkdir -p /srv/
|
|
|
|
# Clone the app from github and install packages
|
|
ADD blockstack.tar.gz /srv/
|
|
RUN pip install kademlia
|
|
RUN pip install pybitcoin
|
|
|
|
##################### INSTALLATION END #####################
|
|
|
|
# Expose the default port
|
|
EXPOSE 6265
|
|
|
|
# Set default entry point
|
|
ENTRYPOINT /usr/local/bin/twistd -noy /srv/blockstack/dht/server.tac
|