-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
62 lines (54 loc) · 2.13 KB
/
Dockerfile
File metadata and controls
62 lines (54 loc) · 2.13 KB
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
FROM debian:bullseye-slim AS binary
LABEL description="impg: implicit pangenome graph"
LABEL base_image="debian:bullseye-slim"
LABEL software="impg"
LABEL about.home="https://github.com/pangenome/impg"
LABEL about.license="SPDX:MIT"
LABEL maintainer="Andrea Guarracino <aguarracino@tgen.org>"
# System dependencies
RUN apt-get update \
&& apt-get install -y \
git \
bash \
curl \
ca-certificates \
build-essential \
cmake \
pkg-config \
zlib1g-dev \
libzstd-dev \
libbz2-dev \
liblzma-dev \
libcurl4-gnutls-dev \
libhts-dev \
libgsl-dev \
libjemalloc-dev \
libclang-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Portable build: no -march=native
ENV PORTABLE=1
RUN git clone --recursive https://github.com/pangenome/impg.git
RUN cd impg \
&& cargo build --release \
&& cp target/release/impg /usr/local/bin/impg \
&& cp target/release/gfaffix /usr/local/bin/gfaffix \
&& cp target/release/wfmash /usr/local/bin/wfmash 2>/dev/null || true \
&& cp target/release/libwfa2*.so* /usr/local/lib/ 2>/dev/null || true \
&& for bin in FastGA FAtoGDB GIXmake GIXrm ALNtoPAF PAFtoALN ONEview; do \
cp target/release/$bin /usr/local/bin/$bin 2>/dev/null || true; \
done \
&& rm -rf target .git \
&& rustup self uninstall -y \
&& apt-get clean \
&& apt-get purge \
&& rm -rf /var/lib/apt/lists/* /tmp/* /root/.cargo
RUN ldconfig \
&& chmod 777 /usr/local/bin/impg /usr/local/bin/gfaffix \
&& chmod 777 /usr/local/bin/wfmash 2>/dev/null || true \
&& for bin in FastGA FAtoGDB GIXmake GIXrm ALNtoPAF PAFtoALN ONEview; do \
chmod 777 /usr/local/bin/$bin 2>/dev/null || true; \
done
ENTRYPOINT ["impg"]