-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (41 loc) · 1009 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
44
45
46
47
48
49
50
FROM python:3.7.4-alpine3.9
MAINTAINER Maciej Januszewski<[email protected]>
ENV PYTHONUNBUFFERED 1
ENV PG_VERSION 11.6-r0
COPY requirements.txt /tmp/
RUN set -ex \
&& apk add --no-cache \
gcc \
g++ \
postgresql-dev=$PG_VERSION \
libjpeg-turbo-dev \
libffi-dev \
musl-dev \
jpeg-dev \
zlib-dev \
freetype-dev \
lcms2-dev \
openjpeg-dev \
tiff-dev \
tk-dev \
tcl-dev \
harfbuzz-dev \
fribidi-dev \
linux-headers \
&& apk add --no-cache \
gettext \
bash \
libmagic \
postgresql-client=$PG_VERSION \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
openssl \
libressl2.7-libcrypto \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
gdal-dev \
geos-dev \
&& pip install --upgrade pip \
&& pip install --no-cache-dir -r /tmp/requirements.txt && rm -rf /tmp/
RUN mkdir /src
WORKDIR /src
COPY . /src
EXPOSE 8000