forked from data-intuitive/ScopeInDocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
56 lines (43 loc) · 1.4 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
FROM ubuntu
RUN apt-get update -y
RUN apt-get install -y \
curl wget \
gnupg \
unzip \
git
# Node js
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y build-essential
# Conda
RUN wget --quiet --content-disposition http://bit.ly/miniconda3 -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
ENV PATH /opt/conda/bin:$PATH
RUN . /opt/conda/etc/profile.d/conda.sh
# Environment
RUN conda create -n scope python=3.6.2 -y
RUN echo "conda activate scope" >> ~/.bashrc
#RUN wget --quiet https://github.com/aertslab/SCope/releases/download/untagged-7055c54f734999ce039f/SCope-linux-x64.zip -O /opt/scope.zip
#RUN (cd /opt/ && unzip scope.zip)
RUN cd / && \
git clone https://github.com/aertslab/SCope && \
mv SCope app
# RUN echo "conda activate scope" | bash -
RUN cd /app && \
# conda activate scope && \
npm install
RUN cd /app/opt && \
python setup.py develop && \
cd ..
EXPOSE 55850 # Frontend
EXPOSE 55851 # Data upload
EXPOSE 55852 # Backend
WORKDIR /app
# The frontend fails if this directory does not exist
RUN mkdir /app/assets/
# COPY . /app
ENTRYPOINT ["npm", "run", "scope"]