-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (32 loc) · 1.22 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
FROM frolvlad/alpine-glibc
MAINTAINER dmaziuk
EXPOSE 9090
WORKDIR /opt/wsgi
RUN apk update && \
apk --no-cache add bash ca-certificates wget libxext libxrender libstdc++ && \
update-ca-certificates && \
apk --update add tzdata && \
cp /usr/share/zoneinfo/America/Chicago /etc/localtime && \
apk del tzdata
RUN apk --no-cache add mc git perl-git git-svn
RUN echo 'export PATH=/opt/anaconda/bin:$PATH' > /etc/profile.d/anaconda.sh && \
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/anaconda.sh && \
/bin/bash ~/anaconda.sh -b -p /opt/anaconda && \
rm ~/anaconda.sh
ENV PATH /opt/anaconda/bin:$PATH
RUN conda install -y -c rdkit rdkit
RUN conda install -y -c openbabel openbabel
RUN conda install -y -c conda-forge libiconv uwsgi werkzeug
RUN conda clean --all --yes
RUN addgroup -g 101 -S uwsgi && \
adduser -u 100 -S uwsgi -G uwsgi
RUN cd /opt/wsgi && \
git svn clone http://octopus.bmrb.wisc.edu/svn/metabolomics_pipe . && \
chown -R uwsgi:uwsgi .
CMD [ "uwsgi", \
"--http", ":9090", \
"--uid", "uwsgi", \
"--gid", "uwsgi", \
"--pidfile", "/run/uwsgi.pid", \
"--python-autoreload", "10", \
"--wsgi-file", "/opt/wsgi/wsgi.py" ]