forked from gitoleg/binaryanalysisplatform.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (24 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
26 lines (24 loc) · 822 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
FROM binaryanalysisplatform/bap:latest as base
ARG key
ENV MY_SSH_PRIVATE=$key
RUN sudo apt-get install emacs-nox man2html --yes \
&& eval $(opam env) \
&& opam install odig --yes \
&& git clone https://github.com/BinaryAnalysisPlatform/bap \
&& make doc -C bap \
&& mkdir -p .ssh \
&& printf "$MY_SSH_PRIVATE" > ~/.ssh/id_rsa \
&& cat ~/.ssh/id_rsa \
&& chmod 400 ~/.ssh/id_rsa \
&& git clone git@github.com:gitoleg/binaryanalysisplatform.github.io --no-checkout --single-branch --branch=master --depth=1 blog \
&& cd blog \
&& git reset -- \
&& mkdir -p bap/api \
&& cp -r ../bap/doc/man1 bap/api \
&& cp -r ../bap/doc/man3 bap/api \
&& cp -r ../bap/doc/lisp bap/api \
&& cp -rL ../bap/doc/odoc bap/api \
&& git add bap/api \
&& git commit -m "test" \
&& git push origin master \
&& rm -rf .ssh