-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
62 lines (49 loc) · 1.51 KB
/
Copy pathDockerfile
File metadata and controls
62 lines (49 loc) · 1.51 KB
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
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y install python3-pip build-essential manpages-dev software-properties-common git cmake libpqxx-dev
RUN pip install conan
# dotenv-cpp
# This is a very simple library that wraps around functions provided
# In the standard library for accessing .env files.
WORKDIR /home
RUN rm -rf dotenv-cpp
RUN git clone --depth 1 --branch master git@github.com:laserpants/dotenv-cpp.git
# pegtl parser library
WORKDIR /home
RUN rm -rf pegtl
RUN git clone --depth 1 --branch master git@github.com:taocpp/PEGTL.git
RUN mkdir build
WORKDIR /home/PEGTL/build
RUN cmake ..
RUN make
RUN make install
#secp256k1
WORKDIR /home
RUN rm -rf secp256k1
RUN git clone --depth 1 --branch master https://github.com/Gigamonkey-BSV/secp256k1.git
WORKDIR /home/secp256k1
RUN conan install .
RUN CONAN_CPU_COUNT=1 conan create . proofofwork/stable
#data
WORKDIR /home
RUN rm -rf data
RUN git clone --depth 1 --branch sessions https://github.com/DanielKrawisz/data.git
WORKDIR /home/data
RUN conan install .
RUN CONAN_CPU_COUNT=1 conan create . proofofwork/stable
#gigamonkey
#WORKDIR /home
#RUN rm -rf Gigamonkey
#RUN git clone --depth 1 --branch sessions https://github.com/Gigamonkey-BSV/Gigamonkey.git
#WORKDIR /home/Gigamonkey
#RUN conan install .
#RUN CONAN_CPU_COUNT=1 conan create . proofofwork/stable
COPY . /home/node
WORKDIR /home/node
RUN chmod -R 777 .
RUN conan install . --output-folder=build --build=missing
WORKDIR /home/node/build
RUN cmake ..
RUN make
CMD ./bin/node