-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (43 loc) · 1.33 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
57
# Commencing
FROM ubuntu:16.04
MAINTAINER Jesse Patsolic <studiojlp@gmail.com>
#### Add user
#RUN useradd -ms /bin/bash meda
#RUN chown meda:meda /home/meda & addgroup meda staff
RUN apt-get update && apt-get install -y openssh-server \
git libcurl4-openssl-dev libxml2-dev \
libssl-dev libssh2-1-dev vim wget tmux
####Install and compile R
RUN apt-get update && apt-get -y install r-base \
r-base-dev
#### Install package
RUN R -e "install.packages(c('ggplot2', 'foreach',\
'gplots', 'reshape2',\
'gridExtra', 'optparse',\
'data.table', 'png', 'viridis', 'raster'),\
repos = 'http://cran.rstudio.com/',\
dependencies = TRUE)"
RUN R -e "source('https://bioconductor.org/biocLite.R'); biocLite('rhdf5')"
RUN apt-get -y install python3 python3-pip
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade jupyter \
numpy \
scipy \
pandas \
pillow \
intern
RUN pip3 install --upgrade requests \
h5py \
matplotlib \
morton-py
RUN apt-get install -y python3-tk
COPY ./run.sh /bin/run.sh
COPY ./toolbox.py /bin/toolbox.py
COPY ./getCubes.py /bin/getCubes.py
COPY ./Synaptograms.R /bin/Synaptograms.R
RUN chmod +x /bin/toolbox.py & \
chmod +x /bin/getCubes.py & \
chmod +x /bin/Synaptograms.R & \
chmod +x /bin/run.sh
WORKDIR /home
ENTRYPOINT ["run.sh"]