-
Notifications
You must be signed in to change notification settings - Fork 40
/
Dockerfile
65 lines (52 loc) · 2.17 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
FROM ubuntu:latest
SHELL ["/bin/bash", "-c"]
RUN apt-get update && \
apt-get -y dist-upgrade && \
apt-get -y install \
autoconf \
bzip2 \
curl \
g++ \
git \
gpg \
libgmp-dev \
libtool \
libssl-dev \
make \
protobuf-compiler \
python3-dev \
xz-utils && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
useradd -ms /bin/bash ubuntu && \
mkdir /opt/kanachan-prerequisites && \
chown ubuntu:ubuntu /opt/kanachan-prerequisites
COPY --chown=ubuntu . /opt/kanachan-prerequisites
RUN /opt/kanachan-prerequisites/gcc/install --debug
ENV LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib
RUN /opt/kanachan-prerequisites/libbacktrace/install --debug
RUN /opt/kanachan-prerequisites/cmake/install --debug
RUN /opt/kanachan-prerequisites/googletest/install --debug
RUN echo 'import toolset : using ; using python : : /usr/bin/python3 ;' >/root/user-config.jam
RUN /opt/kanachan-prerequisites/boost/download --debug --source-dir /usr/local/src/boost
RUN /opt/kanachan-prerequisites/boost/build --debug --source-dir /usr/local/src/boost -- \
-d+2 --with-headers --with-stacktrace --with-python --build-type=complete --layout=tagged \
toolset=gcc variant=debug threading=multi link=shared runtime-link=shared \
cxxflags=-D_GLIBCXX_DEBUG cxxflags=-D_GLIBCXX_DEBUG_PEDANTIC \
cflags=-fsanitize=address cxxflags=-fsanitize=address linkflags=-fsanitize=address \
cflags=-fsanitize=undefined cxxflags=-fsanitize=undefined linkflags=-fsanitize=undefined
RUN /opt/kanachan-prerequisites/boost/build --debug --source-dir /usr/local/src/boost -- \
-d+2 --with-headers --with-stacktrace --with-python --build-type=complete --layout=tagged \
toolset=gcc variant=release threading=multi link=shared runtime-link=shared
USER ubuntu
RUN mkdir -p /home/ubuntu/.local/src && \
pushd /home/ubuntu/.local/src && \
git clone 'https://github.com/s-yata/marisa-trie.git' && \
popd
RUN mkdir -p /home/ubuntu/.local/src && \
pushd /home/ubuntu/.local/src && \
git clone 'https://github.com/tomohxx/shanten-number' && \
pushd shanten-number && \
tar xzvf index.tar.gz && \
popd && \
popd
USER root