From b7eb539022a2d32323926ed50131d6bc3193d70a Mon Sep 17 00:00:00 2001 From: Zoey Date: Sat, 17 Aug 2024 21:57:03 +0200 Subject: [PATCH] Update Dockerfile Signed-off-by: Zoey --- Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f8ec1d..c043300 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,19 @@ # syntax=docker/dockerfile:labs FROM python:3.12.5-slim-bookworm AS pip COPY requirements.txt /tmp/requirements.txt -RUN python3 -m venv /usr/local && \ +ARG DEBIAN_FRONTEND=noninteractive +RUN apt update && \ + apt upgrade -y && \ + apt install -y ca-certificates && \ + python3 -m venv /usr/local && \ pip install --no-cache-dir -r /tmp/requirements.txt FROM python:3.12.5-slim-bookworm COPY --from=pip /usr/local /usr/local -RUN playwright install chrome +RUN apt update && \ + apt upgrade -y && \ + apt install -y ca-certificates tzdata tini && \ + playwright install chrome +USER nobody COPY app.py /usr/local/bin/app.py ENTRYPOINT ["tini", "--", "app.py"]