-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mohamed Mahgoub
authored and
Mohamed Mahgoub
committed
Jun 21, 2024
1 parent
c05f73b
commit 18f6dd2
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Use the Rocker R image | ||
FROM rocker/r-ver:4.4.0 | ||
|
||
# Copy installBioc.r script | ||
RUN cp /usr/local/lib/R/site-library/littler/examples/installBioc.r /usr/local/bin/installBioc.r | ||
|
||
# Install BiocManager | ||
RUN Rscript -e "install.packages('BiocManager')" | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get -y install \ | ||
less \ | ||
curl \ | ||
gzip \ | ||
lsof \ | ||
libz-dev \ | ||
libbz2-dev \ | ||
liblzma-dev \ | ||
libxml2 \ | ||
libxml2-dev \ | ||
libxt6 \ | ||
libglpk-dev \ | ||
libmysqlclient21 \ | ||
libcurl4-openssl-dev && \ | ||
python3 \ | ||
python3-pip && \ | ||
apt-get clean | ||
|
||
# Install Bioconductor packages | ||
RUN R -e "install.packages('BiocManager'); BiocManager::install(version = '3.19')" | ||
|
||
# Install required R and Bioconductor packages | ||
RUN R -e "install.packages(c('argparse', 'data.table')); \ | ||
BiocManager::install(c('HDF5Array', 'bsseq', 'DSS', 'GenomicRanges', 'IRanges'))" | ||
|
||
# Entry point for the container | ||
CMD ["bash"] |