template refactor
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user