-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (22 loc) · 1.1 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
FROM continuumio/miniconda3
ARG CACHEBUST=1
# Set the working directory in the container
WORKDIR /app
# Install git
RUN apt-get update && apt-get install -y git && apt-get clean
# Clone the repository
RUN git clone https://github.com/michael-ford/ImmunoTyper-SR.git
# Create the conda environment and install required packages
RUN conda config --prepend channels conda-forge
RUN conda config --append channels bioconda
RUN conda create -y -n immunotyper-SR -c bioconda python=3.8 bwa bowtie2 freebayes whatshap \
&& conda install -y -n immunotyper-SR -c gurobi gurobi && conda install -y -n immunotyper-SR -c conda-forge samtools
# Install the ImmunoTyper-SR package
RUN /bin/bash -c "source /opt/conda/etc/profile.d/conda.sh && conda activate immunotyper-SR && pip install /app/ImmunoTyper-SR"
# Set the Gurobi license environment variable
ENV GRB_LICENSE_FILE=/opt/gurobi/gurobi.lic
# Copy the entrypoint script into the container
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["--help"]