-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·88 lines (68 loc) · 3.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
###############################################################################
# ____ _ _ _ ____ _ _ #
# | _ \ __ _ _ __| |_(_) ___| | ___/ ___|| |_ __ _| |_ ___ #
# | |_) / _` | '__| __| |/ __| |/ _ \___ \| __/ _` | __/ __| #
# | __/ (_| | | | |_| | (__| | __/___) | || (_| | |_\__ \ #
# |_| \__,_|_| \__|_|\___|_|\___|____/ \__\__,_|\__|___/ #
# #
###############################################################################
# ParticleStats: Open source software for the analysis of particle #
# motility and cytoskelteal polarity #
# #
# Contact: Russell.Hamilton@bioch.ox.ac.uk #
# http://www.ParticleStats.com #
# Centre for Trophoblast Research, #
# University of Cambridge #
# Copyright (C) 2017 Russell S. Hamilton #
# #
# Please cite: #
# Hamilton, R.S. et al (2010) Nucl. Acids Res. Web Server Edition #
# http://dx.doi.org/10.1093/nar/gkq542 #
###############################################################################
# GNU Licence Details: #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
###############################################################################
# Get the base ubuntu image for Docker
FROM ubuntu:16.04
# Install some basic ubuntu tools
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
apt-get install -y curl python-pip git htop tree man unzip vim wget && \
apt-get install -y python-dev python-xlrd && \
add-apt-repository -y ppa:inkscape.dev/stable && \
apt-get -y update && \
apt-get -y install inkscape && \
rm -rf /var/lib/apt/lists/*
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Install some python packages required by ParticleStats
RUN \
pip install --upgrade pip && \
pip install pillow scipy boot xlwt matplotlib
pip install astropy --no-deps
# Install ParticleStats
RUN \
cd /root && \
git clone https://github.com/darogan/ParticleStats && \
cd ParticleStats && \
python setup.py install
# Define default command.
CMD ["bash"]