* chore(release): 0.1.10 — version sync, wheel packaging, Docker weasyprint libs Release-prep for 0.1.10 (bundles the global data layer + everything since 0.1.9): - version 0.1.9 -> 0.1.10 synced across all surfaces: pyproject, frontend package.json/lock, sidebar footer + i18n, SKILL.md, Dockerfile LABEL. REST API + MCP server now derive the version from cli._version (were hardcoded "5.0.0" / unset). - pyproject package-data ships skill example scripts (skills/**/*.py) so the wheel + sdist include them; fastmcp floor -> 2.14.0 (first release where the MCP version= kwarg applies). - Dockerfile installs weasyprint native libs (Pango/HarfBuzz/Fontconfig/Cairo/ gdk-pixbuf + DejaVu) so PDF reports render in the image; .dockerignore *.md -> /*.md (root-anchored, skill markdown still ships). - README news (5 locales): 06-19 reframed as the v0.1.10 release; 06-19/06-18 trimmed. Verified: clean-room pip install imports all new loaders/tools; wheel + sdist carry the eastmoney/sec-edgar skills incl. UTF-8 references + scripts; 4167 backend tests pass (weasyprint PDF path covered on CI). * docs(release): credit v0.1.10 cycle contributors across READMEs Refresh the Contributors section in all 5 READMEs from the v0.1.9 cycle to the v0.1.10 cycle (PRs #162–#260): @Hinotoi-agent, @mvanhorn, @gyx09212214-prog, @BillDin, @Robin1987China, @LemonCANDY42, @zwrong, @forge-builder, @skloxo, @LeeCQiang, @KaiLuettmann, @ngoanpv, @ShahNewazKhan, @sambazhu, @bhlt, @octo-patch.
72 lines
2.7 KiB
Docker
72 lines
2.7 KiB
Docker
# ============================================================================
|
|
# Stage 1: Build frontend
|
|
# ============================================================================
|
|
FROM node:20-slim AS frontend-build
|
|
|
|
WORKDIR /app/frontend
|
|
COPY frontend/package.json frontend/package-lock.json ./
|
|
RUN npm ci --ignore-scripts
|
|
COPY frontend/ ./
|
|
RUN npm run build
|
|
|
|
# ============================================================================
|
|
# Stage 2: Python runtime
|
|
# ============================================================================
|
|
FROM python:3.11-slim AS runtime
|
|
|
|
LABEL org.opencontainers.image.title="Vibe-Trading" \
|
|
org.opencontainers.image.description="Natural-language finance research AI agent with backtesting" \
|
|
org.opencontainers.image.version="0.1.10" \
|
|
org.opencontainers.image.source="https://github.com/HKUDS/Vibe-Trading" \
|
|
org.opencontainers.image.licenses="MIT"
|
|
|
|
WORKDIR /app
|
|
|
|
# System deps
|
|
# build-essential — compile any wheels without prebuilt manylinux artifacts.
|
|
# The rest are weasyprint's runtime native libs (Pango/HarfBuzz/Fontconfig/
|
|
# Cairo/gdk-pixbuf) per its official Debian install list; without them the
|
|
# lazy `from weasyprint import HTML` in reporter.py fails and PDF rendering
|
|
# silently downgrades to HTML-only. fonts-dejavu-core gives non-blank PDFs.
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
libpango-1.0-0 \
|
|
libpangoft2-1.0-0 \
|
|
libharfbuzz0b \
|
|
libfontconfig1 \
|
|
libgdk-pixbuf-2.0-0 \
|
|
libcairo2 \
|
|
fonts-dejavu-core \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Python deps (install before copying code for layer caching)
|
|
COPY agent/requirements.txt agent/requirements.txt
|
|
RUN pip install --no-cache-dir -r agent/requirements.txt
|
|
|
|
# Copy project
|
|
COPY pyproject.toml LICENSE README.md ./
|
|
COPY agent/ agent/
|
|
|
|
# Copy built frontend
|
|
COPY --from=frontend-build /app/frontend/dist frontend/dist
|
|
|
|
# Install CLI entrypoint
|
|
RUN pip install --no-cache-dir -e .
|
|
|
|
# Runtime should not run as root. Keep writable app data directories owned by
|
|
# the service user so named Docker volumes inherit usable permissions.
|
|
RUN useradd --create-home --shell /usr/sbin/nologin vibe \
|
|
&& mkdir -p agent/runs agent/sessions agent/uploads agent/.swarm/runs /home/vibe/.vibe-trading \
|
|
&& chown -R vibe:vibe /app /home/vibe/.vibe-trading
|
|
USER vibe
|
|
|
|
# Default port
|
|
EXPOSE 8899
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8899/health')" || exit 1
|
|
|
|
# Run API server (serves frontend/dist as static files)
|
|
CMD ["vibe-trading", "serve", "--host", "0.0.0.0", "--port", "8899"]
|