-
Notifications
You must be signed in to change notification settings - Fork 125
/
Dockerfile
72 lines (56 loc) · 2.18 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
ARG FLYE_VER="2.9.5"
FROM ubuntu:jammy as builder
ARG FLYE_VER
RUN apt-get update && apt-get install --no-install-recommends -y \
make \
gcc \
g++ \
python3 \
python3-pip \
python3-setuptools \
zlib1g-dev \
wget \
ca-certificates \
procps && \
rm -rf /var/lib/apt/lists/* && apt-get autoclean
RUN wget -q https://github.com/fenderglass/Flye/archive/${FLYE_VER}.tar.gz && \
tar -xf ${FLYE_VER}.tar.gz && \
cd Flye-${FLYE_VER} && \
python3 setup.py install
FROM ubuntu:jammy as app
ARG FLYE_VER
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="Flye"
LABEL software.version="${FLYE_VER}"
LABEL description="Fast and accurate de novo assembler for single molecule sequencing reads"
LABEL website="https://github.com/fenderglass/Flye"
LABEL license="https://github.com/fenderglass/Flye/blob/flye/LICENSE"
LABEL maintainer="Erin Young"
LABEL maintainer.email="[email protected]"
LABEL maintainer2="Curtis Kapsak"
LABEL maintainer2.email="[email protected]"
# Minimal requirements to run Flye in final image
# python3-distutils is required for test_toy.py , but might not be needed at runtime
RUN apt-get update && apt-get install --no-install-recommends -y \
python3 \
python3-distutils \
procps && \
rm -rf /var/lib/apt/lists/* && apt-get autoclean
COPY --from=builder /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
COPY --from=builder /usr/local/bin /usr/local/bin
WORKDIR /data
CMD ["flye", "--help"]
# For Singularity compatibility
ENV LC_ALL=C
FROM app as test
# Run Flye version and help for quick validation
RUN flye --version && flye --help
# Copy Flye source files from builder for running tests
COPY --from=builder /Flye-${FLYE_VER} /Flye-${FLYE_VER}
# Run Flye's built-in toy dataset test
RUN python3 /Flye-${FLYE_VER}/flye/tests/test_toy.py
# Download test data and perform an assembly
RUN apt-get update && apt-get install --no-install-recommends -y wget ca-certificates && \
wget -q https://raw.githubusercontent.com/bactopia/bactopia-tests/main/data/species/portiera/nanopore/ERR3772599.fastq.gz && \
flye --nano-raw ERR3772599.fastq.gz -o flye-test-portiera -t 2