-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 1.42 KB
/
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 python:3.12.7-bookworm
ARG DUCKDB_VERSION="1.1.1"
ARG DUCKDB_URI="https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip"
ARG BCFTOOLS_VERSION="1.21"
ARG BCFTOOLS_URI="https://github.com/samtools/bcftools/releases/download/${BCFTOOLS_VERSION}/bcftools-${BCFTOOLS_VERSION}.tar.bz2"
ARG HTSLIB_VERSION="1.21"
ARG HTSLIB_URI="https://github.com/samtools/htslib/releases/download/${HTSLIB_VERSION}/htslib-${HTSLIB_VERSION}.tar.bz2"
ENV PIP_ROOT_USER_ACTION=ignore
RUN pip install --no-cache-dir "duckdb==${DUCKDB_VERSION}"
RUN curl -L -o duckdb_cli-linux-amd64.zip "${DUCKDB_URI}" \
&& unzip duckdb_cli-linux-amd64.zip -d /usr/local/bin \
&& rm duckdb_cli-linux-amd64.zip
RUN curl -L -o bcftools.tar.bz2 "${BCFTOOLS_URI}" \
&& tar -jxf bcftools.tar.bz2 \
&& cd "bcftools-${BCFTOOLS_VERSION}" \
&& ./configure --prefix=/usr/local \
&& make \
&& make install \
&& cd .. \
&& rm -fr "bcftools-${BCFTOOLS_VERSION}" bcftools.tar.bz2
RUN curl -L -o htslib.tar.bz2 "${HTSLIB_URI}" \
&& tar -jxf htslib.tar.bz2 \
&& cd "htslib-${HTSLIB_VERSION}" \
&& ./configure --prefix=/usr/local \
--enable-libcurl \
--enable-gcs \
--enable-s3 \
--with-libdeflate \
&& make \
&& make install \
&& cd .. \
&& rm -rf "htslib-${HTSLIB_VERSION}" htslib.tar.bz2
RUN mkdir -p /opt/outlier-exclusion/scripts
COPY scripts/*.py /opt/outlier-exclusion/scripts/
CMD ["bash"]