-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
36 lines (27 loc) · 1.01 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
FROM debian:jessie
# Add extra repositories
RUN apt-get update && apt-get install -y --no-install-recommends wget apt-transport-https ca-certificates
RUN wget -qO - https://www.mongodb.org/static/pgp/server-3.6.asc | apt-key add -
RUN echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
sudo \
mongodb-org \
gcc \
make \
g++ \
build-essential \
python-pip \
python-dev \
python3-pip \
python3-dev
# Upgrade pip
RUN pip install --upgrade --ignore-installed pip
RUN pip3 install --upgrade --ignore-installed pip
# Put Python pip requirements files
ADD requirements.txt /tmp/requirements.txt
ADD requirements-tests.txt /tmp/requirements-tests.txt
RUN pip3 install -r /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements-tests.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install -r /tmp/requirements-tests.txt
RUN mkdir -p /data/db