-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (36 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
44 lines (36 loc) · 1.27 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
43
44
FROM python:3.14-slim@sha256:9b81fe9acff79e61affb44aaf3b6ff234392e8ca477cb86c9f7fd11732ce9b6a
LABEL authors="phil.ewels@seqera.io,erik.danielsson@scilifelab.se" \
description="Docker image containing requirements for nf-core/tools"
# Do not pick up python packages from $HOME
ENV PYTHONNUSERSITE=1
# Update pip and install uv
RUN python -m pip install --upgrade pip uv
# Install Nextflow dependencies
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y git \
&& apt-get install -y curl
# Create man dir required for Java installation
# and install Java
RUN mkdir -p /usr/share/man/man1 \
&& apt-get install -y default-jre \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
# Setup ARG for NXF_VER ENV
ARG NXF_VER=""
ENV NXF_VER ${NXF_VER}
# Install Nextflow
RUN curl -s https://get.nextflow.io | bash \
&& mv nextflow /usr/local/bin \
&& chmod a+rx /usr/local/bin/nextflow
# Install nf-test
RUN curl -fsSL https://get.nf-test.com | bash \
&& mv nf-test /usr/local/bin \
&& chmod a+rx /usr/local/bin/nf-test
# Add the nf-core source files to the image
COPY . /usr/src/nf_core
WORKDIR /usr/src/nf_core
# Install nf-core
RUN uv pip install --system .
# Set up entrypoint and cmd for easy docker usage
ENTRYPOINT [ "nf-core" ]
CMD [ "." ]