right-tree/backend/Dockerfile

19 lines
399 B
Text
Raw Normal View History

2023-02-08 14:24:48 +13:00
FROM python:3.11-slim-bullseye
WORKDIR /app
2023-02-08 14:24:48 +13:00
RUN apt update \
&& apt install -y --no-install-recommends gdal-bin wkhtmltopdf \
2023-02-08 14:24:48 +13:00
&& rm -rf /var/lib/apt/lists/* \
&& apt clean
2021-10-15 14:31:52 +13:00
COPY . /app
2023-03-29 16:41:46 +13:00
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"
2023-03-29 16:41:46 +13:00
USER righttree