Dockerfile25 lines · 534 chars FROM python:3.12.13-bookworm
ARG PORT=8051
ENV PORT=${PORT}
WORKDIR /app
# Install essential build tools (if needed by some packages)
RUN apt-get update && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage build cache
COPY requirements.txt ./
# Install Python dependencies
RUN python -m pip install --no-cache-dir -r requirements.txt
# Copy the application source
COPY . .
EXPOSE ${PORT}
# Run the MCP server
CMD ["python", "src/crawl4ai_mcp.py"]