-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (38 loc) · 1.44 KB
/
Dockerfile
File metadata and controls
42 lines (38 loc) · 1.44 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
FROM python:3.13-bookworm AS spades
WORKDIR /build
RUN apt-get update && apt-get install -y build-essential cmake libbz2-dev wget zlib1g-dev
RUN wget https://github.com/ablab/spades/releases/download/v4.2.0/SPAdes-4.2.0.tar.gz
RUN tar -xzf SPAdes-4.2.0.tar.gz
WORKDIR SPAdes-4.2.0
ENV PREFIX=/build/spades
RUN ./spades_compile.sh
FROM python:3.13-bookworm AS deps
WORKDIR /app
COPY --from=ghcr.io/virtool/tools:1.1.0 /tools/bowtie2/2.5.4/bowtie* /usr/local/bin/
COPY --from=ghcr.io/virtool/tools:1.1.0 /tools/pigz/2.8/pigz /usr/local/bin/
COPY --from=ghcr.io/virtool/tools:1.1.0 /tools/hmmer/3.3.2/ /opt/hmmer
COPY --from=ghcr.io/virtool/tools:1.1.0 /tools/skewer/0.2.2/ /usr/local/bin
COPY --from=spades /build/spades /opt/spades
FROM python:3.13-bookworm AS uv
WORKDIR /app
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:${PATH}" \
UV_CACHE_DIR='/tmp/uv_cache'
COPY uv.lock pyproject.toml README.md ./
RUN uv sync
FROM deps AS test
WORKDIR /app
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:/opt/hmmer/bin:/opt/spades/bin:${PATH}" \
UV_CACHE_DIR='/tmp/uv_cache'
COPY uv.lock pyproject.toml ./
COPY README.md ./
RUN uv sync
COPY example ./example
COPY tests ./tests
COPY utils.py workflow.py VERSION* ./
FROM deps AS base
WORKDIR /app
ENV PATH="/app/.venv/bin:/root/.local/bin:/opt/hmmer/bin:/opt/spades/bin:${PATH}"
COPY --from=uv /app/.venv /app/.venv
COPY utils.py workflow.py VERSION* ./