forked from BlockInTheShell/alastria-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 710 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 710 Bytes
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
FROM ubuntu:16.04
LABEL maintainer "Alfonso de la Rocha (https://github.com/arochaga)"
ARG hostip
ARG nodetype
ARG nodename
ENV HOST_IP $hostip
COPY data /root/alastria-node/data
RUN chmod -R u+x /root/alastria-node/data
COPY scripts /root/alastria-node/scripts
RUN chmod -R u+x /root/alastria-node/scripts
WORKDIR /root/alastria-node/scripts
RUN \
apt-get update && \
apt-get install -y curl \
libcurl3 unzip wget git make gcc libsodium-dev build-essential libdb-dev zlib1g-dev libtinfo-dev sysvbanner wrk psmisc sudo
RUN sudo -H ./bootstrap.sh
RUN ./init.sh dockerfile $nodetype $nodename
RUN ./start.sh
EXPOSE 9000 21000 21000/udp 22000 41000
RUN ./start.sh
CMD ["./start.sh" , "dockerfile"]