-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
74 lines (62 loc) · 2.76 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Below are the commands for ARM64 architecture.
# Comment them out and uncomment the commands for AMD64 architecture if you are using an AMD64 architecture.
# Use the Miniforge3 base image for ARM64 architecture, which provides a minimal conda installation
FROM --platform=linux/arm64/v8 condaforge/miniforge3
# Set the working directory in the container
WORKDIR /app
# Install git
RUN apt-get update && apt-get install -y git
# Clone the GitHub repository
RUN git clone https://github.com/uio-bmi/fdr_under_dependencies.git
# Set the working directory to the cloned repository
WORKDIR /app/fdr_under_dependencies
# Change to the specific branch
RUN git checkout users/mmamica/add-unit-tests
# Install git, git-lfs, and build-essential tools
RUN apt-get update && apt-get install -y git git-lfs build-essential
# Copy the data files to the container
COPY data/realworld_methyl_beta.h5 /app/fdr_under_dependencies/data/realworld_methyl_beta.h5
# Create a Conda environment
RUN conda create --name fdr_under_dependencies python=3.9
# Install R and Bioconductor limma package
RUN conda run -n fdr_under_dependencies conda install -c conda-forge r-base
RUN conda run -n fdr_under_dependencies conda install -c bioconda bioconductor-limma
# Install Python dependencies and the local package
RUN conda run -n fdr_under_dependencies pip install -r requirements.txt
RUN conda run -n fdr_under_dependencies pip install -r requirements_dev.txt
RUN conda run -n fdr_under_dependencies pip install .
## Below are the commands for AMD64 architecture.
#FROM --platform=linux/amd64 continuumio/anaconda3
#
## Set the working directory in the container
#WORKDIR /app
#
## Install git
#RUN apt-get update && apt-get install -y git
#
## Clone the GitHub repository
#RUN git clone https://github.com/uio-bmi/fdr_under_dependencies.git
#
## Set the working directory to the cloned repository
#WORKDIR /app/fdr_under_dependencies
#
## Change to the specific branch
#RUN git checkout users/mmamica/add-unit-tests
#
## Install git, git-lfs, and build-essential tools
#RUN apt-get update && apt-get install -y git git-lfs build-essential
#
## Copy the data files to the container
#COPY data/realworld_methyl_beta.h5 /app/fdr_under_dependencies/data/realworld_methyl_beta.h5
#
## Create a Conda environment
#RUN conda create --name fdr_under_dependencies python=3.9
#
## Install R and Bioconductor limma package
#RUN conda run -n fdr_under_dependencies conda install -c conda-forge r-base
#RUN conda run -n fdr_under_dependencies conda install -c bioconda bioconductor-limma
#
## Install Python dependencies and the local package
#RUN conda run -n fdr_under_dependencies pip install -r requirements.txt
#RUN conda run -n fdr_under_dependencies pip install -r requirements_dev.txt
#RUN conda run -n fdr_under_dependencies pip install .