-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.broad_sanger_exp
More file actions
executable file
·54 lines (40 loc) · 1.47 KB
/
Dockerfile.broad_sanger_exp
File metadata and controls
executable file
·54 lines (40 loc) · 1.47 KB
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
48
FROM r-base:4.4.1
ENV DEBIAN_FRONTEND=noninteractive
# Update and upgrade packages, then install required packages.
RUN apt-get update --fix-missing && \
apt-get upgrade -y && \
apt-get install -y --fix-missing --allow-unauthenticated \
build-essential \
python3-pip \
python3-setuptools \
python3-dev \
python3-venv \
libcurl4-openssl-dev \
libglpk-dev \
libxml2-dev \
libpq-dev \
ca-certificates && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Create and upgrade the Python virtual environment.
RUN python3 -m venv /opt/venv && \
/opt/venv/bin/pip install --upgrade pip
# Set MPLCONFIGDIR to a writable directory and create it.
ENV MPLCONFIGDIR=/app/tmp/matplotlib
RUN mkdir -p /app/tmp/matplotlib
# Set Python path and working directory.
ENV PYTHONPATH "${PYTHONPATH}:/app"
WORKDIR /app
# installing r libraries
ADD coderbuild/broad_sanger/exp_requirements.r .
RUN Rscript exp_requirements.r
# installing python libraries
ADD coderbuild/broad_sanger/requirements.txt .
RUN /opt/venv/bin/pip3 install -r requirements.txt
# Add these later so caching is already done for the R and Python libraries.
ADD coderbuild/broad_sanger/03_joinDrugFiles.py ./
ADD coderbuild/broad_sanger/03-createDrugFile.R ./
ADD coderbuild/broad_sanger/04a-drugResponseData.R ./
ADD coderbuild/broad_sanger/*py ./
ADD coderbuild/broad_sanger/build_drugs.sh ./
ADD coderbuild/broad_sanger/build_exp.sh ./
ADD coderbuild/utils/* ./