# Nextflow driver for the Argo annotate-vcf workflow. Tasks run in their own containers.
FROM eclipse-temurin:21-jre
ARG NXF_VER=26.04.6
ENV NXF_VER=${NXF_VER} NXF_HOME=/opt/nextflow
RUN apt-get update \
 && apt-get install -y --no-install-recommends curl ca-certificates \
 && rm -rf /var/lib/apt/lists/* \
 && curl -fsSL https://get.nextflow.io | bash \
 && mv nextflow /usr/local/bin/nextflow \
 && nextflow plugin install nf-google
COPY main.nf nextflow.config /pipeline/
COPY modules /pipeline/modules
COPY bin /pipeline/bin
COPY assets /pipeline/assets
# CI passes the loader image built from the same commit, so driver and loader never drift.
ARG LOADER_IMAGE=rarelens/loader:dev
ENV RARELENS_LOADER_IMAGE=${LOADER_IMAGE}
WORKDIR /work
ENTRYPOINT ["nextflow"]
