-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
65 lines (50 loc) · 1.09 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
FROM continuumio/anaconda:latest
MAINTAINER Mohamed Nadhir Djekidel <[email protected] >
RUN apt-get update && apt-get dist-upgrade -y
# I know this part should be annoying sorry
RUN apt-get install -y --no-install-recommends \
apt-utils \
automake \
bash \
binutils \
perl \
build-essential \
bzip2 \
c++11 \
cdbs \
cmake \
cron \
curl \
dkms \
dpkg-dev \
g++ \
gpp \
gcc \
gfortran \
libblas-dev \
libatlas-base-dev \
libbz2-dev \
liblzma-dev \
libpcre3-dev \
libreadline-dev \
llvm \
libconfig-dev \
zlib1g-dev
# Set the PATH (sometimes it cannot find pip)
ENV PATH /opt/conda/bin:$PATH
# insall dependencies
COPY ./requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
#Clean up APT when done.
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
apt-get autoclean && \
apt-get autoremove -y && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
# Copy HiC3D-Viewer
ADD . /app
WORKDIR /app
# Specify the entry point
ENV FLASK_APP=autoapp.py
EXPOSE 5000
CMD ["flask","run","-h","0.0.0.0"]