forked from nycoin/nycoin
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
executable file
·73 lines (60 loc) · 1.79 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# ===============================================================================
# Dockerfile
# Builds nycoin and the executable binary, "newyorkcd"
#
#
# It is based on Ubuntu 14.04 LTS
# ===============================================================================
# Set the base image to Ubuntu
FROM ubuntu:14.04
# File Author / Maintainer
MAINTAINER jmsds
# ===============================================================================
# Env. Setup
#
# Update repository
RUN apt-get update && apt-get -y upgrade
# ----------------------------------------------------------
# Dependencies
# ----------------------------------------------------------
# Basic Dependencies
#
RUN apt-get install -y git \
telnet \
ntp \
unzip \
build-essential \
libtool \
pkg-config \
bsdmainutils \
libssl-dev \
libdb5.1++-dev \
libdb5.1-dev \
libboost-all-dev \
libqrencode-dev \
libminiupnpc-dev \
libevent-dev \
miniupnpc \
autoconf \
autogen
# ===============================================================================
# Set working directory
#
WORKDIR /work
# ===============================================================================
# Install configuration
#
RUN mkdir -p /root/.newyorkc
# ===============================================================================
# System Initialization
#
## Copy folders
RUN git clone https://github.com/NewYorkCoin-NYC/nycoin.git /work
RUN cd /work && \
chmod a+x autogen.sh && \
./autogen.sh && \
./configure && \
/usr/bin/make
# Set default CMD
CMD /work/src/newyorkcoind && tail -f -n 10 /root/.newyorkc/debug.log
EXPOSE 17020 27020 18823 28823