-
Notifications
You must be signed in to change notification settings - Fork 84
/
Dockerfile
43 lines (31 loc) · 938 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ubuntu:14.04
MAINTAINER Rémy Greinhofer <[email protected]>
# Create the directory containing the code.
RUN mkdir /code
WORKDIR /code
# Set the environment variables.
ENV PYTHONPATH $PYTHONPATH:/code
# Update the package list.
RUN apt-get update \
# Install libgeos.
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
# Install Python2.x.
python \
python-dev \
python-pip \
# Install Python3.
python3 \
python3-dev \
python3-pip \
# Install postgresql dev lib.
libpq-dev \
# Cleaning up.
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Copy the requirements.txt file.
COPY requirements.txt /code/requirements.txt
COPY test-requirements.txt /code/test-requirements.txt
# Install the pip packages.
RUN pip install -q -r requirements.txt -r test-requirements.txt
RUN pip3 install -q -r requirements.txt -r test-requirements.txt