right-tree/backend/Dockerfile
2023-03-29 16:41:46 +13:00

18 lines
399 B
Docker

FROM python:3.11-slim-bullseye
WORKDIR /app
RUN apt update \
&& apt install -y --no-install-recommends gdal-bin wkhtmltopdf \
&& rm -rf /var/lib/apt/lists/* \
&& apt clean
COPY . /app
RUN pip install -U --no-cache-dir -r requirements.txt && \
useradd -Mu 1000 righttree && \
chown -R righttree:righttree /app
ENV DJANGO_SETTINGS_MODULE="right_tree.settings"
USER righttree