-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (21 loc) · 1.12 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
## NOTE: Running this container this way docker run -it <name> bash
## Using the base Debian 11 Bullseye image with python 3.10. This image uses the amd64 architecture for the binaries that is somewhat slower in Mac ARM chips
FROM --platform=linux/amd64 ubuntu:18.04
LABEL org.opencontainers.image.authors=" David Aurelia Ayala Usma <ayala.usma@gmail.com>"
## Copying files into container
RUN mkdir -p /home/openPRS
RUN mkdir -p /home/openPRS/datasets
RUN mkdir -p /home/openPRS/src
COPY datasets/ /home/openPRS/datasets
COPY src/ /home/openPRS/src
COPY prs_workflow_exec.sh /home/openPRS
COPY requirements.txt /home/openPRS
## Installing dependencies
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install htop python3.8-minimal python3-pip git
RUN DEBIAN_FRONTEND=noninteractive update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
RUN DEBIAN_FRONTEND=noninteractive update-alternatives --config python3
RUN python3 -m pip install --upgrade pip
RUN pip3 install -r /home/openPRS/requirements.txt
## Running the entire workflow
CMD bash /home/openPRS/prs_workflow_exec.sh