fix: switch to python:3.11-slim-bookworm base image
Some checks failed
Build Docker Image / build (push) Failing after 8m12s
Some checks failed
Build Docker Image / build (push) Failing after 8m12s
The tiangolo/uvicorn-gunicorn-fastapi image moved to Debian Trixie (testing) which Playwright doesn't support — install-deps fails on renamed font packages. The tiangolo image only adds uvicorn/gunicorn which are already in requirements.txt, so switch to the official Python slim-bookworm image directly. Also removes the old commented-out Chrome manual install block that hasn't been used since the Playwright migration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a6cf4eea01
commit
47dcdf00c4
33
Dockerfile
33
Dockerfile
@ -1,38 +1,7 @@
|
|||||||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11-slim-bookworm
|
FROM python:3.11-slim-bookworm
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Chrome dependency Instalation
|
|
||||||
# RUN apt-get update && apt-get install -y \
|
|
||||||
# fonts-liberation \
|
|
||||||
# libasound2 \
|
|
||||||
# libatk-bridge2.0-0 \
|
|
||||||
# libatk1.0-0 \
|
|
||||||
# libatspi2.0-0 \
|
|
||||||
# libcups2 \
|
|
||||||
# libdbus-1-3 \
|
|
||||||
# libdrm2 \
|
|
||||||
# libgbm1 \
|
|
||||||
# libgtk-3-0 \
|
|
||||||
# # libgtk-4-1 \
|
|
||||||
# libnspr4 \
|
|
||||||
# libnss3 \
|
|
||||||
# libwayland-client0 \
|
|
||||||
# libxcomposite1 \
|
|
||||||
# libxdamage1 \
|
|
||||||
# libxfixes3 \
|
|
||||||
# libxkbcommon0 \
|
|
||||||
# libxrandr2 \
|
|
||||||
# xdg-utils \
|
|
||||||
# libu2f-udev \
|
|
||||||
# libvulkan1
|
|
||||||
# # Chrome instalation
|
|
||||||
# RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
||||||
# RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
|
|
||||||
# RUN rm google-chrome-stable_current_amd64.deb
|
|
||||||
# # Check chrome version
|
|
||||||
# RUN echo "Chrome: " && google-chrome --version
|
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
RUN playwright install chromium
|
RUN playwright install chromium
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user