Files
btc-trading/docker/Dockerfile.bot
Gemini CLI da7fbd1b49 feat: fix Bybit Unified Account support and enhance Docker logging for ping_pong_bot
- Added accountType='UNIFIED' to wallet balance requests
- Updated balance retrieval to support totalWalletBalance for UTA
- Replaced rich.Live with standard logging for better Docker compatibility
- Added PYTHONUNBUFFERED=1 to ensure real-time logs in containers
- Updated docker-compose to point to NAS database (20.20.20.20)
- Created GEMINI.md with comprehensive project context
2026-03-05 11:04:30 +01:00

24 lines
399 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Copy requirements first
COPY requirements_bot.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements_bot.txt
# Copy application code
COPY src/ ./src/
COPY config/ ./config/
COPY .env .
# Create logs directory
RUN mkdir -p /app/logs
# Set Python path
ENV PYTHONPATH=/app
# Run the bot
CMD ["python", "src/strategies/ping_pong_bot.py"]