diff --git a/Dockerfile b/Dockerfile index c52190a..9f8ec1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,11 @@ # syntax=docker/dockerfile:labs -FROM python:3.12.5-alpine3.20 AS pip +FROM python:3.12.5-slim-bookworm AS pip COPY requirements.txt /tmp/requirements.txt -RUN apk upgrade --no-cache -a && \ - apk add --no-cache ca-certificates && \ - python3 -m venv /usr/local && \ +RUN python3 -m venv /usr/local && \ pip install --no-cache-dir -r /tmp/requirements.txt -FROM python:3.12.5-alpine3.20 +FROM python:3.12.5-slim-bookworm COPY --from=pip /usr/local /usr/local -RUN apk upgrade --no-cache -a && \ - apk add --no-cache ca-certificates tzdata tini && \ - playwright install chrome +RUN playwright install chrome COPY app.py /usr/local/bin/app.py ENTRYPOINT ["tini", "--", "app.py"]