-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
28 lines (21 loc) · 903 Bytes
/
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
FROM rocker/r-ver:4.2.0
RUN apt-get update && apt-get install -y git-core libcurl4-openssl-dev libgit2-dev libicu-dev libpng-dev libssl-dev libxml2-dev make pandoc pandoc-citeproc python zlib1g-dev && rm -rf /var/lib/apt/lists/*
RUN echo "options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl')" >> /usr/local/lib/R/etc/Rprofile.site
# install python
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
apt-get -y install python3.9
# install pip
RUN apt-get install -y python3-pip
# install anndata
RUN pip3 install anndata
# Install MCView
RUN R -e 'install.packages("remotes")'
RUN R -e 'remotes::install_github("tanaylab/MCView", Ncpus = 40)'
RUN mkdir /MCView
ADD ./start_app.R /MCView/
WORKDIR /MCView
EXPOSE 3838
CMD ["./start_app.R", "/project", "3838"]