first commit
deploy GitHub Pages / deploy (push) Has been cancelled
tests / test (push) Has been cancelled

This commit is contained in:
2026-07-22 18:53:44 +08:00
commit 9259325d8a
60 changed files with 11081 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
# Install system deps for web3 / signing libs
RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml README.md ./
COPY arbitrage ./arbitrage
RUN pip install --upgrade pip \
&& pip install -e .
# Paper mode by default; no secrets required
ENV ARB_MODE=paper \
ARB_DB_PATH=/data/arbitrage.db \
ARB_WEB_HOST=0.0.0.0 \
ARB_WEB_PORT=8000
VOLUME ["/data"]
EXPOSE 8000
# Entrypoint chooses init→discover→scan→web via docker-compose services.
ENTRYPOINT ["arb"]
CMD ["web"]