-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 815 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
FROM python:3.7-alpine
# postgresql-client is required by psql
# postgresql-dev musl-dev gcc are required by psycopg
# NOTE: there is py3-psycopg2
# gdal-dev geos-dev proj4-dev are required by geodjango
# NOTE: we actually need gdal-dev not gdal
# TODO: optimize installation by using --virtual
RUN apk update && apk upgrade \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
postgresql-client \
postgresql-dev \
musl-dev \
gcc \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
gdal-dev \
geos-dev \
proj-dev
ENV PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8
WORKDIR /project
COPY requirements-test.txt /project/
RUN pip install --no-cache-dir -r requirements-test.txt