# Candidate package: lifecycle and paid-provider acceptance remain pending. # Source is immutable; base-image digest qualification remains a release gate. FROM ghcr.io/astral-sh/uv:python3.14-bookworm-slim RUN apt-get update && apt-get install -y --no-install-recommends \ git build-essential pkg-config libffi-dev libsecp256k1-dev \ autoconf automake libtool \ && rm -rf /var/lib/apt/lists/* WORKDIR /opt/routstr # Routstr v0.5.0. Do not substitute latest or a moving branch. RUN git init . \ && git remote add origin https://github.com/Routstr/routstr-core.git \ && git fetch --depth 1 origin 4aa58bf380dd41f8e3ab7dc768b8e1d112d92019 \ && git checkout --detach FETCH_HEAD \ && test "$(git rev-parse HEAD)" = 4aa58bf380dd41f8e3ab7dc768b8e1d112d92019 \ && uv sync --frozen --no-dev --no-install-project \ && rm -rf .git # alembic.ini's script_location is cwd-relative, but cwd is /data below. RUN sed -i 's|^script_location = migrations$|script_location = %(here)s/migrations|' alembic.ini \ && grep -qx 'script_location = %(here)s/migrations' alembic.ini ENV PYTHONPATH=/opt/routstr \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ GIT_COMMIT=4aa58bf380dd41f8e3ab7dc768b8e1d112d92019 \ GIT_TAG=v0.5.0 # Upstream's .wallet and logs paths are relative to cwd. Keep them beside # keys.db and the encryption key, not on the read-only application filesystem. WORKDIR /data EXPOSE 8000 # Starts uvicorn, then applies the node wallet's mints/payout address and the # install-default model price through Routstr's own admin API. COPY archy-start.py /opt/archy/archy-start.py CMD ["/opt/routstr/.venv/bin/python", "/opt/archy/archy-start.py"]