1
- FROM python:3.9 -alpine as builder
1
+ FROM python:3.11 -alpine as builder
2
2
RUN apk add gcc make g++ zlib-dev bzip2-dev xz-dev linux-headers ncurses-dev curl-dev coreutils
3
3
4
4
FROM builder as samtools_builder
5
- ARG SAMTOOLS_VERSION=1.10
5
+ ARG SAMTOOLS_VERSION=1.17
6
6
RUN wget -O /tmp/samtools.tar.bz2 "https://github.com/samtools/samtools/releases/download/${SAMTOOLS_VERSION}/samtools-${SAMTOOLS_VERSION}.tar.bz2" && \
7
7
tar -xjC /tmp -f /tmp/samtools.tar.bz2 && \
8
8
cd /tmp/samtools-${SAMTOOLS_VERSION} && \
9
9
./configure --prefix=/usr/local/samtools && \
10
10
make && make install
11
11
12
12
FROM builder as minimap2_installer
13
- ARG MINIMAP2_VERSION=2.22
13
+ ARG MINIMAP2_VERSION=2.26
14
14
RUN wget -O /tmp/minimap2.tar.bz2 "https://github.com/lh3/minimap2/releases/download/v${MINIMAP2_VERSION}/minimap2-${MINIMAP2_VERSION}_x64-linux.tar.bz2" && \
15
15
tar -xjC /tmp -f /tmp/minimap2.tar.bz2 && \
16
16
mv /tmp/minimap2-${MINIMAP2_VERSION}_x64-linux /usr/local/minimap2
17
17
18
18
FROM builder as pysam_builder
19
- RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.9 /site-packages/_manylinux.py
20
- RUN pip install 'cython==0.29.32 '
21
- RUN pip install 'pysam==0.20 .0'
19
+ RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.11 /site-packages/_manylinux.py
20
+ RUN pip install 'cython==0.29.35 '
21
+ RUN pip install 'pysam==0.21 .0'
22
22
23
23
FROM builder as orjson_builder
24
- RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.9 /site-packages/_manylinux.py
24
+ RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.11 /site-packages/_manylinux.py
25
25
RUN apk add rust cargo patchelf
26
- RUN pip install 'orjson==3.8.0 '
26
+ RUN pip install 'orjson==3.9.1 '
27
27
28
28
FROM builder as cutadapt_builder
29
- RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.9 /site-packages/_manylinux.py
30
- RUN pip install 'cutadapt==4.2 '
29
+ RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.11 /site-packages/_manylinux.py
30
+ RUN pip install 'cutadapt==4.4 '
31
31
32
32
FROM builder as pydep_builder
33
33
COPY --from=pysam_builder /root/.cache/ /root/.cache/
34
34
COPY --from=orjson_builder /root/.cache/ /root/.cache/
35
35
COPY --from=cutadapt_builder /root/.cache/ /root/.cache/
36
- RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.9 /site-packages/_manylinux.py
37
- RUN pip install 'cython==0.29.32 '
36
+ RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.11 /site-packages/_manylinux.py
37
+ RUN pip install 'cython==0.29.35 '
38
38
COPY requirements.txt /codfreq/
39
39
RUN pip install -r /codfreq/requirements.txt
40
40
41
41
42
42
FROM builder as py_builder
43
43
COPY --from=pydep_builder /root/.cache/ /root/.cache/
44
- RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.9 /site-packages/_manylinux.py
45
- RUN pip install 'cython==0.29.32 '
44
+ RUN echo 'manylinux2014_compatible = True' > /usr/local/lib/python3.11 /site-packages/_manylinux.py
45
+ RUN pip install 'cython==0.29.35 '
46
46
COPY . /codfreq/
47
47
RUN pip install --ignore-installed --target /python-packages /codfreq
48
48
RUN mv /python-packages/bin /python-scripts
49
49
50
50
FROM builder as fastp_installer
51
- ARG FASTP_VERSION=0.23.2
51
+ ARG FASTP_VERSION=0.23.4
52
52
RUN wget -O /usr/local/bin/fastp http://opengene.org/fastp/fastp.${FASTP_VERSION}
53
53
RUN chmod +x /usr/local/bin/fastp
54
54
55
55
FROM builder as htslib_builder
56
56
RUN apk add automake autoconf
57
- ARG HTSLIB_VERSION=1.16
57
+ ARG HTSLIB_VERSION=1.17
58
58
RUN wget -O /tmp/htslib.tar.gz https://github.com/samtools/htslib/releases/download/${HTSLIB_VERSION}/htslib-${HTSLIB_VERSION}.tar.bz2
59
59
RUN tar -xjC /tmp -f /tmp/htslib.tar.gz
60
60
RUN cd /tmp/htslib-${HTSLIB_VERSION} && \
@@ -65,7 +65,7 @@ RUN cd /tmp/htslib-${HTSLIB_VERSION} && \
65
65
FROM builder as ivar_builder
66
66
RUN apk add automake autoconf
67
67
COPY --from=htslib_builder /usr/local/htslib/ /usr/local/htslib/
68
- ARG IVAR_VERSION=1.3.1
68
+ ARG IVAR_VERSION=1.4.2
69
69
RUN wget -O /tmp/ivar.tar.gz https://github.com/andersen-lab/ivar/archive/refs/tags/v${IVAR_VERSION}.tar.gz
70
70
RUN tar -xzC /tmp -f /tmp/ivar.tar.gz
71
71
RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/htslib/lib && \
@@ -77,12 +77,12 @@ RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/htslib/lib && \
77
77
./configure --prefix=/usr/local/ivar && \
78
78
make && make install
79
79
80
- FROM python:3.9 -alpine
80
+ FROM python:3.11 -alpine
81
81
ENV LANG="C.UTF-8" \
82
82
HTSLIB_CONFIGURE_OPTIONS="--enable-plugins"
83
83
RUN apk add --no-cache bash libc6-compat libcurl jq zip pigz
84
84
COPY --from=py_builder /python-scripts/ /usr/local/bin/
85
- COPY --from=py_builder /python-packages/ /usr/local/lib/python3.9 /site-packages/
85
+ COPY --from=py_builder /python-packages/ /usr/local/lib/python3.11 /site-packages/
86
86
COPY --from=orjson_builder /usr/lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1
87
87
COPY --from=samtools_builder /usr/local/samtools/ /usr/local/samtools/
88
88
COPY --from=minimap2_installer /usr/local/minimap2/ /usr/local/minimap2/
0 commit comments