forked from divio/divio-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (41 loc) · 1.12 KB
/
Copy pathDockerfile
File metadata and controls
50 lines (41 loc) · 1.12 KB
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
FROM debian:wheezy
RUN set -ex; \
apt-get update -qq; \
apt-get install -y \
locales \
gcc \
make \
zlib1g \
zlib1g-dev \
libssl-dev \
git \
ca-certificates \
curl \
libsqlite3-dev \
; \
rm -rf /var/lib/apt/lists/*
# Build Python 2.7.11 from source
RUN set -ex; \
curl -L https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz | tar -xz; \
cd Python-2.7.11; \
./configure --enable-shared; \
make; \
make install; \
cd ..; \
rm -rf /Python-2.7.11
# Make libpython findable
ENV LD_LIBRARY_PATH /usr/local/lib
# Install setuptools version 19.2 => https://github.com/pyinstaller/pyinstaller/issues/1781
RUN set -ex; \
curl -L https://bootstrap.pypa.io/ez_setup.py > ez_setup.py; \
python ez_setup.py --version=19.2
# Install pip
RUN set -ex; \
curl -L https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz | tar -xz; \
cd pip-8.0.2; \
python setup.py install; \
cd ..; \
rm -rf pip-8.0.2
RUN pip install virtualenv
WORKDIR /code/
ENTRYPOINT ["bash", "./scripts/build-unix"]