# Discord Rare Monitor Bot - Dockerfile
FROM python:3.12-slim

# Set working directory
WORKDIR /app

# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application code
COPY discord_rare_monitor.py .
COPY test_websocket.py .
COPY icon_mapping.py .

# Copy icons directory
COPY icons/ ./icons/

# Default environment variables
ENV DISCORD_RARE_BOT_TOKEN="" \
    DERETH_TRACKER_WS_URL="ws://dereth-tracker:8765/ws/position" \
    COMMON_RARE_CHANNEL_ID="1355328792184226014" \
    GREAT_RARE_CHANNEL_ID="1353676584334131211" \
    LOG_LEVEL="INFO"

# Run the bot
CMD ["python", "discord_rare_monitor.py"]