/
Dockerfile
executable file
·40 lines (32 loc) · 1.18 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
FROM ubuntu:16.04
# The pywps master has not been tagged recently, this is the develop from
# 2018-03-22
RUN apt-get -yqq update && \
apt-get -yqq install python python-nose python-zmq ipython python-numpy \
python-scipy python-netcdf4 python-matplotlib \
python-mpltoolkits.basemap python-pip \
python-flufl.enum apache2 \
libapache2-mod-wsgi python-setuptools python-lxml \
python-future python-requests python-psycopg2 git-core
RUN pip install --upgrade pip
# the pinned versions for pyproj, threddsclient and pywps are
# the last versions to support python 2.7
RUN pip install pyproj==2.2.2 \
threddsclient==0.3.5 \
"pywps<4.3" \
https://github.com/Ouranosinc/pyPavics/archive/0.4.3.zip
COPY . /root/
COPY configtests.cfg /root/pavics_datacatalog/tests/
RUN cd /root && \
python setup.py install && \
python setup.py test && \
useradd apapywps && \
install -d -o apapywps -g apapywps /home/apapywps
COPY pywps.wsgi /var/www/html/wps/
COPY apache2.conf /etc/apache2/
COPY pywps.cfg /etc/
COPY catalog.cfg /home/
COPY docker_configs.py /home/
CMD python /home/docker_configs.py && \
/etc/init.d/apache2 start && tail -f /dev/null
EXPOSE 80