2021-10-06 14:06:55 +13:00
|
|
|
FROM python:3.8-slim-bullseye
|
|
|
|
|
2021-10-07 09:00:27 +13:00
|
|
|
ENV DJANGO_SUPERUSER_USERNAME=admin
|
|
|
|
ENV DJANGO_SUPERUSER_EMAIL=admin@admin.com
|
|
|
|
ENV DJANGO_SUPERUSER_PASSWORD=admin
|
|
|
|
|
2021-10-06 14:06:55 +13:00
|
|
|
WORKDIR /app
|
|
|
|
|
2021-10-15 14:31:52 +13:00
|
|
|
RUN apt update && \
|
|
|
|
apt install -y --no-install-recommends \
|
|
|
|
gdal-bin \
|
|
|
|
libxml2 libxml2-dev gettext \
|
|
|
|
libxslt1-dev libjpeg-dev libpng-dev libpq-dev libgdal-dev \
|
|
|
|
software-properties-common g++ \
|
|
|
|
zlib1g-dev libgeos-dev libproj-dev \
|
|
|
|
sqlite3 spatialite-bin libsqlite3-mod-spatialite && \
|
|
|
|
apt clean
|
|
|
|
|
2021-10-06 14:06:55 +13:00
|
|
|
COPY ./requirements.txt /app/requirements.txt
|
|
|
|
|
|
|
|
RUN pip install -U --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
COPY . /app
|