-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (30 loc) · 1.28 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
FROM rocker/shiny-verse:4.3.1
MAINTAINER Joshua Campbell <camp@bu.edu>
COPY . /sctk
RUN apt-get -y update -qq \
&& apt-get install -y --no-install-recommends \
libjpeg-dev libv8-dev libbz2-dev liblzma-dev libglpk-dev libgeos-dev \
libpq-dev \
build-essential \
libcurl4-openssl-dev \
libxml2-dev \
libssl-dev \
libssh2-1-dev \
libmagick++-dev \
libcairo2-dev \
pandoc \
python3-pip
RUN addgroup --system app \
&& adduser --system --ingroup app app
RUN apt-get install -y python3-dev
RUN export CFLAGS="-O3 -march=nehalem" && pip3 install --upgrade pip && pip3 install numpy llvmlite scrublet virtualenv scanpy anndata bbknn pandas scanorama scipy astroid six
#Add singleCellTK directory and script to docker
RUN mkdir -p /SCTK_docker/ && mkdir /SCTK_docker/script && mkdir /SCTK_docker/modes
#ADD ./install_packages.R /SCTK_docker/script
ADD ./exec/SCTK_runQC.R /SCTK_docker/script
RUN R -e "options(timeout=360000)" \
&& R -e "devtools::install_github('mingl1997/sctk_qc-1.7.6', ref = 'main', force = TRUE, dependencies = TRUE)"
EXPOSE 80
#CMD ["R", "-e", "shiny::runApp('/sctk/inst/shiny', port = 80, host = '0.0.0.0')"]
#ENTRYPOINT ["Rscript", "./SCTK_docker/exec/SCTK_runQC.R"]
ENTRYPOINT ["Rscript", "/usr/local/lib/R/site-library/singleCellTK/exec/SCTK_runQC.R"]