-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (38 loc) · 944 Bytes
/
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
FROM node:12-alpine
ENV USR_BIN /usr/local/bin
RUN apk add --no-cache \
dumb-init \
git \
autoconf \
make \
gcc \
g++ \
zlib-dev \
bzip2-dev \
xz-dev \
ncurses-dev
# -> /usr/local/bin/bgzip
# -> /usr/local/bin/tabix
RUN set -ex \
&& cd /opt \
&& git clone --depth 1 --branch 1.9 https://github.com/samtools/htslib \
&& git clone --depth 1 --branch 1.9 https://github.com/samtools/samtools \
&& git clone --depth 1 --branch 1.9 https://github.com/samtools/bcftools \
&& cd htslib \
&& autoconf -Wno-syntax \
&& make clean \
&& make \
&& cp bgzip $USR_BIN \
&& cd /opt/bcftools \
&& autoconf -Wno-syntax \
&& make \
&& cp bcftools $USR_BIN \
&& cd /opt/samtools \
&& autoconf -Wno-syntax \
&& make \
&& cp samtools $USR_BIN \
&& rm -fr /opt/htslib /opt/samtools /opt/bcftools
RUN mkdir -p /opt/app
WORKDIR /tmp
COPY target/build/ /opt/app/
ENTRYPOINT ["node", "/opt/app/src/index.js"]