FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Install dependencies
RUN pip install --no-cache-dir \
    aiohttp \
    websockets \
    numpy \
    requests

# Copy application files
COPY multi_coin_collector.py .
COPY logger_daily_multi.py .
COPY indicators_extended.py .
COPY mempool_extended.py .
COPY config.py .

# Create data directory
RUN mkdir -p /var/www/html/crypto

# Set permissions
RUN chmod 755 /var/www/html/crypto

# Run the collector
CMD ["python3", "multi_coin_collector.py"]
