forked from commonsearch/cosr-ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
76 lines (56 loc) · 1.4 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM debian:jessie
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
wget \
git \
gcc \
ssh \
build-essential \
make \
python \
python-pip \
python-dev \
python-numpy \
python3 \
python3-pip \
python3-dev \
vim \
net-tools \
unzip \
libyaml-dev \
sudo
#
# Install Packer
# (conveniently ships as a single executable)
#
RUN wget 'https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip' && \
unzip packer_0.10.1_linux_amd64.zip -d /usr/local/bin/ && \
rm -rf packer_0.10.1_linux_amd64.zip
#
# Install Heroku toolbelt
#
RUN wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
#
# Python setup
#
ADD requirements.txt /requirements.txt
# Upgrade pip because debian has a really old version
RUN pip install --upgrade --ignore-installed pip
RUN pip install -r /requirements.txt
#
# Python3 setup
#
ADD requirements3.txt /requirements3.txt
# Upgrade pip because debian has a really old version
RUN pip3 install --upgrade --ignore-installed pip
RUN pip3 install -r /requirements3.txt
#
# Misc env setup
#
RUN mkdir -p /root/.config/flintrock/
RUN ln -s /cosr/ops/configs/flintrock.yaml /root/.config/flintrock/config.yaml
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
# Save the hash at the time the image was built
ADD .dockerhash /cosr/.ops-dockerhash