Debian Codegraph @

Dockerfile

raw
1 FROM alpine
2
3 MAINTAINER Martin Sosic <[email protected]>
4
5 WORKDIR ~
6
7 # Install needed packages to compile Edlib, then pull it from git repo, compile it,
8 # move edlib-aligner to bin/ so it can be executed, delete edlib source files and delete all packages
9 # except for libstdc++ (which is needed for edlib-aligner to run) and bash for convenience, in order to keep docker image small.
10 RUN apk --no-cache add cmake clang clang-dev make gcc g++ libc-dev linux-headers git libstdc++ bash && \
11 git clone -b v1.2.3 https://github.com/Martinsos/edlib.git edlib-git && \
12 cd edlib-git && cd build && cmake -D CMAKE_BUILD_TYPE=Release .. && make edlib-aligner && \
13 cp bin/edlib-aligner /bin && \
14 cd ../.. && rm -r edlib-git && \
15 apk del cmake clang clang-dev make gcc g++ libc-dev linux-headers git
16
17 CMD ["edlib-aligner"]