-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile
30 lines (23 loc) · 1.29 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
FROM ubuntu:22.04
# Copy files
COPY setup.py /home/ubuntu/immuneML/
COPY requirements.txt /home/ubuntu/immuneML/
COPY requirements_TCRdist.txt /home/ubuntu/immuneML/
COPY requirements_DeepRC.txt /home/ubuntu/immuneML/
COPY README.md /home/ubuntu/immuneML/
COPY immuneML /home/ubuntu/immuneML/immuneML
COPY test /home/ubuntu/immuneML/test
COPY scripts /home/ubuntu/immuneML/scripts
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git-all gcc g++ make python3.11 parasail python3.11-venv autotools-dev autoconf libtool pkgconf python3-dev
# install the dependency CompAIRR
RUN git clone https://github.com/uio-bmi/compairr.git /home/ubuntu/compairr_folder
RUN make -C /home/ubuntu/compairr_folder
RUN cp /home/ubuntu/compairr_folder/src/compairr /home/ubuntu/immuneML/compairr
# Voila: install immuneML in the virtual environment under /home/ubuntu/immuneML/.venv
RUN python3.11 -m venv /home/ubuntu/immuneML/.venv && \
/home/ubuntu/immuneML/.venv/bin/python -m pip install --upgrade pip
RUN /home/ubuntu/immuneML/.venv/bin/python -m pip install /home/ubuntu/immuneML/[TCRdist,gen_models,ligo]
# download the database to be able to export full-length sequences using Stitchr package
ENV PATH=/home/ubuntu/immuneML/.venv/bin:$PATH
RUN stitchrdl -s human