feat: production paper trading platform

This commit is contained in:
Курнат Андрей
2026-07-14 22:52:47 +03:00
parent 7186acb9a1
commit 5c4aecfe5f
29 changed files with 396 additions and 564 deletions
+9 -5
View File
@@ -5,12 +5,16 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r /app/requirements.txt
RUN pip install --no-cache-dir --disable-pip-version-check --upgrade pip \
&& pip install --no-cache-dir --disable-pip-version-check -r /app/requirements.txt \
&& groupadd --gid 1000 tradebot \
&& useradd --uid 1000 --gid tradebot --home-dir /app --shell /usr/sbin/nologin tradebot
COPY crypto_spot_bot /app/crypto_spot_bot
COPY README.md /app/README.md
RUN mkdir -p /app/runtime
COPY --chown=1000:1000 crypto_spot_bot /app/crypto_spot_bot
COPY --chown=1000:1000 README.md /app/README.md
RUN mkdir -p /app/runtime && chown -R 1000:1000 /app/runtime
EXPOSE 8787
USER 1000:1000
STOPSIGNAL SIGTERM
CMD ["python", "-m", "crypto_spot_bot.main"]