mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-11-03 16:12:44 +02:00
- once a day a background thread records the latest GitHub release and the notices for each version; the welcome screen shows them from that cache, so no run waits on the network - the release notice names the upgrade command for how TradingAgents was installed - TRADINGAGENTS_NO_UPDATE_CHECK=1 turns the check off; unattended and CI runs never make it - notices are read from a new `notices` key, so earlier versions keep reading `announcements`
31 lines
712 B
Docker
31 lines
712 B
Docker
FROM python:3.13-slim AS builder
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
|
|
RUN python -m venv /opt/venv
|
|
ENV PATH="/opt/venv/bin:$PATH"
|
|
|
|
WORKDIR /build
|
|
COPY . .
|
|
RUN pip install --no-cache-dir .
|
|
|
|
FROM python:3.13-slim
|
|
|
|
# TRADINGAGENTS_IN_DOCKER lets an update notice name the rebuild command.
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
TRADINGAGENTS_IN_DOCKER=1
|
|
|
|
COPY --from=builder /opt/venv /opt/venv
|
|
ENV PATH="/opt/venv/bin:$PATH"
|
|
|
|
RUN useradd --create-home appuser \
|
|
&& install -d -m 0755 -o appuser -g appuser /home/appuser/.tradingagents
|
|
USER appuser
|
|
WORKDIR /home/appuser/app
|
|
|
|
COPY --from=builder --chown=appuser:appuser /build .
|
|
|
|
ENTRYPOINT ["tradingagents"]
|