The seller's Routstr now trusts the node wallet's accepted mints and pays
its earnings to the wallet's Minibits Lightning address, and its local
llama-server model ships priced.
- derived_env gains {{ECASH_MINTS}} and {{ECASH_LN_ADDRESS}}, resolved on
demand from the node wallet at install and on every start. An empty
mint list refuses the start: with no CASHU_MINTS, Routstr silently
trusts its built-in mint.minibits.cash default.
- Routstr's saved settings win over env after the first boot, so the
image's new PID 1 (archy-start.py) re-applies the wallet's mints and
payout address through Routstr's admin API on every start, and prices
archy-llama once at install defaults without replacing an operator's
price.
- The manifest wires the private llama-server upstream and its generated
key, and depends on the llama-server app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.7 KiB
Docker
37 lines
1.7 KiB
Docker
# 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"]
|