right-tree/backend/Dockerfile

24 lines
699 B
Text
Raw Normal View History

FROM python:3.8-slim-bullseye
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 \
2021-11-18 10:58:53 +13:00
sqlite3 spatialite-bin libsqlite3-mod-spatialite \
wget && \
2021-10-15 14:31:52 +13:00
apt clean
2021-11-18 10:58:53 +13:00
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
RUN apt install -y ./wkhtmltox_0.12.6-1.buster_amd64.deb
COPY ./requirements.txt /app/requirements.txt
RUN pip install -U --no-cache-dir -r requirements.txt
COPY . /app