forked from iridiumdev/Iridium-IRD-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (15 loc) · 855 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian:sid-slim
ENV BUILDDEPS cmake make g++ gcc python2.7 git libboost1.61-all-dev
ENV STATICDEPS libboost-atomic1.61.0 libboost-serialization1.61.0 libboost-system1.61.0 libboost-filesystem1.61.0 libboost-thread1.61.0 libboost-date-time1.61.0 libboost-chrono1.61.0 libboost-regex1.61.0 libboost-program-options1.61.0
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y $STATICDEPS $BUILDDEPS \
&& rm -rf /var/lib/apt/lists/*
ADD . /opt/iridium
WORKDIR /opt/iridium
RUN make -j4
RUN apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILDDEPS
RUN mkdir /opt/iridium_data && mkdir /opt/iridium_bin
RUN cp /opt/iridium/build/release/src/simplewallet /opt/iridium_bin
RUN cp /opt/iridium/build/release/src/iridiumd /opt/iridium_bin
RUN chmod -R 755 /opt/iridium_bin/
RUN rm -rf /opt/iridium/