Functional Discord bot with automated hourly stock price updates during NYSE trading hours. Supports manual queries for any ticker via prefix commands. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
495 B
Docker
26 lines
495 B
Docker
# Use official Python runtime as base image
|
|
FROM python:3.11-slim
|
|
|
|
# Set working directory in container
|
|
WORKDIR /app
|
|
|
|
# Set environment variables
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Create non-root user for security
|
|
RUN useradd -m -u 1000 botuser && \
|
|
chown -R botuser:botuser /app
|
|
|
|
USER botuser
|
|
|
|
# Run the bot
|
|
CMD ["python", "bot.py"]
|