v0.2.0 — remove vendored fork, upstream login feature
Some checks failed
Build and Push Docker Image / build (push) Failing after 39s
Some checks failed
Build and Push Docker Image / build (push) Failing after 39s
- Delete vendor/schwab-scraper/ (now fetched at CI build time) - Delete schwab_mcp_custom/ package (LoginManager moved into server.py) - server.py: add inline LoginManager with env-configurable rate limits - server.py: orchestrate login safety checks at MCP layer, not in scraper - Dockerfile: restore vendor-based build with fresh upstream checkout - pyproject.toml: bump mcp>=1.27.0, playwright>=1.54.0
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -4,11 +4,12 @@ ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml uv.lock ./
|
||||
# Copy vendored schwab-scraper (checked out cleanly by CI) and pyproject.toml
|
||||
COPY vendor/schwab-scraper /tmp/schwab-scraper
|
||||
COPY pyproject.toml uv.lock ./
|
||||
|
||||
# Install schwab-scraper from vendored source, then all other deps.
|
||||
# We strip the git dependency from pyproject.toml so uv doesn't try to fetch it.
|
||||
# Install schwab-scraper from the clean build-time checkout, then remaining deps.
|
||||
# We strip the git dependency line so uv doesn't try to fetch over the network.
|
||||
RUN uv venv && \
|
||||
uv pip install /tmp/schwab-scraper && \
|
||||
sed -i '/schwab-scraper/d' pyproject.toml && \
|
||||
@@ -20,7 +21,9 @@ COPY . .
|
||||
|
||||
FROM python:3.12-slim-bookworm
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends curl && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app /app
|
||||
|
||||
Reference in New Issue
Block a user