Skip to content

Commit

Permalink
Add docker-bsseq image
Browse files Browse the repository at this point in the history
  • 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.
37 changes: 37 additions & 0 deletions docker-bsseq/Dockerfile
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"]

0 comments on commit 18f6dd2

Please sign in to comment.