-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (37 loc) · 1.22 KB
/
Dockerfile
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
45
46
47
# Dockerfile
FROM debian:12-slim
# Prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv \
samtools \
openjdk-17-jre-headless \
curl \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Set up Python virtual environment
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install Python dependencies in virtual environment
COPY requirements.txt /app/requirements.txt
RUN pip3 install --no-cache-dir -r /app/requirements.txt
# Create necessary directories
RUN mkdir -p /app/ref /app/samples /app/results /app/beds
# Copy files into container
COPY maf30_snps.txt /app/
COPY loh.py /app/
COPY centromeres.json /app/
COPY run_analysis.sh /app/
COPY beds/R210.bed /app/beds/
# Download VarScan from GitHub
RUN curl -L https://github.com/dkoboldt/varscan/releases/download/v2.4.6/VarScan.v2.4.6.jar -o /app/VarScan.v2.4.6.jar
# Set working directory
WORKDIR /app
# Make the run script executable
RUN chmod +x run_analysis.sh
# Default command
ENTRYPOINT ["./run_analysis.sh"]