template refactor

This commit is contained in:
2025-10-21 23:05:43 -05:00
parent 4846af66c4
commit ed3b1de1cd
12 changed files with 990 additions and 587 deletions

View File

@@ -4,6 +4,7 @@ FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1 \
VIRTUAL_ENV=/opt/venv \
LANG=C.UTF-8 LC_ALL=C.UTF-8 \
PATH="/opt/venv/bin:$PATH"
# copy only requirements first so pip install can be cached
@@ -13,9 +14,12 @@ COPY app/requirements.txt /app/requirements.txt
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 python3-venv python3-pip \
nmap ca-certificates tzdata && \
nmap ca-certificates tzdata wkhtmltopdf fonts-dejavu ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Debug Print version of wkhtmltopdf
RUN wkhtmltopdf --version
# ---- Create & activate venv ----
RUN python3 -m venv $VIRTUAL_ENV