Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Aug 17, 2024
1 parent b5d577a commit c88e0d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ COPY requirements.txt /tmp/requirements.txt
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y ca-certificates && \
apt-get install --no-install-recommends -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 apt update && \
apt upgrade -y && \
apt install -y ca-certificates tzdata tini && \
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install --no-install-recommends -y ca-certificates tzdata tini && \
playwright install chrome
USER nobody
COPY app.py /usr/local/bin/app.py
Expand Down

0 comments on commit c88e0d3

Please sign in to comment.