-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 973 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 973 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
26
27
28
29
30
# Use Miniforge for fast, robust Conda environment solving
FROM condaforge/miniforge3:latest
# Set working directory
WORKDIR /app
# Install system-level dependencies required by SMINA and OpenMM
RUN apt-get update && apt-get install -y \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Copy the environment definition
COPY environment.yml .
# Create the conda environment and clean up caches to keep the image small
RUN mamba env create -f environment.yml && mamba clean -afy
# Activate the conda environment globally for all subsequent commands
ENV PATH="/opt/conda/envs/mutationscan/bin:$PATH"
# Copy the entire codebase into the container
COPY . .
# ---------------------------------------------------------
# THE FIX: Universally expose the custom Python package
# ---------------------------------------------------------
ENV PYTHONPATH="/app/src"
# Set Snakemake as the default command (entrypoint can be overridden if needed)
CMD ["snakemake", "--help"]