-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 920 Bytes
/
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
# call parent container
FROM python:2.7
# set author
MAINTAINER Lain Pavot <lain.pavot@inra.fr>
# set encoding
ENV LANG en_US.UTF-8
# Install NMRPro
RUN pip install django==1.9.7
RUN pip install numpy scipy patterns url
# RUN pip install nmrpro
RUN pip install git+https://github.com/ahmohamed/nmrpro@e2e54e3999106739e88dca371687dfa78d26200e
RUN pip install django-nmrpro
RUN django-admin startproject nmrpro_server
# Setup NMRPro -> file changed
COPY resources/nmrpro_server/settings.py nmrpro_server/nmrpro_server/settings.py
COPY resources/nmrpro_server/urls.py nmrpro_server/nmrpro_server/urls.py
RUN python /nmrpro_server/manage.py migrate
COPY resources/django_nmrpro/encoder.py /usr/local/lib/python2.7/site-packages/django_nmrpro/encoder.py
COPY resources/django_nmrpro/views.py /usr/local/lib/python2.7/site-packages/django_nmrpro/views.py
CMD python /nmrpro_server/manage.py runserver 0.0.0.0:8000