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