19 lines
364 B
Docker
19 lines
364 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# System deps for Playwright
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY pyproject.toml .
|
|
RUN pip install --no-cache-dir -e . \
|
|
&& scrapling install
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8765
|
|
|
|
CMD ["uvicorn", "service.main:app", "--host", "0.0.0.0", "--port", "8765"]
|