13 lines
406 B
Docker
13 lines
406 B
Docker
FROM python:3.13-slim
|
|
WORKDIR /app
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN python3 -m playwright install chromium
|
|
RUN python3 -m playwright install-deps chromium
|
|
COPY server.py ./
|
|
ENV PYTHONUNBUFFERED=1
|
|
EXPOSE 8901
|
|
CMD ["python3", "server.py"]
|