Files
btc-trading/docker/Dockerfile.bot

24 lines
391 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Copy requirements first
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.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"]