22 lines
494 B
Docker
22 lines
494 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
# System deps (kept minimal; playwright browsers not installed unless needed at runtime)
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
COPY . /app
|
|
|
|
# GOOGLE_API_KEY must be provided at runtime
|
|
CMD ["python", "main.py"]
|
|
|
|
|