-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
62 lines (59 loc) · 1.44 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
FROM alpine:3.8
MAINTAINER Thomas Spicer <[email protected]>
ENV LANG C.UTF-8
ENV PY_DEPS \
curl \
pkgconfig \
freetype-dev \
openblas-dev \
ca-certificates \
bzip2-dev \
build-base \
gcc \
gdbm-dev \
libc-dev \
linux-headers \
musl-dev \
python-dev \
cmake \
g++ \
gfortran \
make \
ncurses-dev \
libressl-dev \
libstdc++ \
tcl-dev \
libffi-dev \
tk-dev \
zlib-dev \
mariadb-common \
py-numpy-dev \
mariadb-dev \
postgresql-dev
RUN apk update \
&& apk add --update --no-cache --virtual .build-deps \
$PY_DEPS \
&& update-ca-certificates \
&& curl -fSL https://s3.amazonaws.com/redshift-downloads/redshift-ssl-ca-cert.pem > /redshift-ssl-ca-cert.pem \
&& apk add --update --virtual .python-deps \
postgresql-client \
mariadb-client \
mariadb-common \
py-pip \
libgfortran \
python \
bash \
curl \
less \
groff \
jq \
py-numpy-f2py \
py-numpy \
freetype \
libpng \
&& pip install --no-cache-dir awscli setuptools cffi==1.11.5 cryptography==2.3.1 psycopg2 matplotlib pandas csvkit python-dateutil pytz six wsgiref scipy \
&& mkdir /root/.aws \
&& rm -rf /usr/src/python ~/.cache \
&& rm -Rf /tmp/* \
&& apk del .build-deps
CMD ["python2"]