-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
27 lines (25 loc) · 860 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
24
25
26
27
FROM centos/devtoolset-7-toolchain-centos7
USER 0
WORKDIR /home/nakamoto
ENV USER_NAME=nakasendo \
USER_UID=1001 \
BASE_DIR=/home/nakasendo
ENV HOME=${BASE_DIR}
RUN yum update -y && \
# yum install -y epel-release cryptopp-devel cryptopp keyutils-libs git which boost boost-devel python python-devel make gmp-devel mpfr-devel libmpc-devel glibc-devel.i686 libcc.i686 gcc-c++
yum install -y epel-release && \
yum install -y cryptopp-devel cryptopp git which python python-devel make && \
git clone https://github.com/boostorg/boost --recursive && \
cd boost && \
./bootstrap.sh --prefix=/usr/ && \
./b2 && \
./b2 install && \
cd .. && \
rm -rf boost
# cp -r include/ /usr/ && \
# cp -r lib/ /usr/
COPY include/ /usr/include/
COPY lib/ /usr/lib/
WORKDIR /home/nakasendo
USER 1000
ENTRYPOINT ["/bin/sh"]