-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 808 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 808 Bytes
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
FROM snakemake/snakemake:latest
ARG BUILD_TEST=false # Override at build time to install test dependencies
# Working directory
WORKDIR /app
# Copy the python scripts and install as a module
COPY workflowhub_graph/ /app/workflowhub_graph/
RUN pip install /app/workflowhub_graph
# Install additional dependencies if specified
RUN if [ "$BUILD_TEST" = "true" ]; then pip install /app/workflowhub_graph[test]; fi
# Copy the Snakefile and config file
COPY Snakefile /app/Snakefile
COPY config.yaml /app/config.yaml
# Copy files needed for the RO-Crate
COPY Dockerfile /app/Dockerfile
COPY README.md /app/README.md
# Set the entry point
ENV XDG_CACHE_HOME=/app/output/
ENTRYPOINT ["snakemake", "--snakefile", "Snakefile", "--configfile", "config.yaml", "--cores", "all", "--directory", "/app/output"]
CMD []