Debian Codegraph @

Dockerfile

raw
1 FROM python:3.10-alpine
2
3 # postgresql-client is required by psql
4 # postgresql-dev musl-dev gcc are required by psycopg
5 # NOTE: there is py3-psycopg2
6 # gdal-dev geos-dev proj4-dev are required by geodjango
7 # NOTE: we actually need gdal-dev not gdal
8
9 # TODO: optimize installation by using --virtual
10 RUN apk update && apk upgrade \
11 && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
12 postgresql-client \
13 postgresql-dev \
14 musl-dev \
15 gcc \
16 && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
17 gdal-dev \
18 geos-dev \
19 proj-dev
20
21 ENV PYTHONUNBUFFERED=1 \
22 PYTHONIOENCODING=UTF-8
23
24 WORKDIR /project
25
26 COPY requirements-test.txt /project/
27
28 RUN pip install --no-cache-dir -r requirements-test.txt