admin panel

This commit is contained in:
vrubelroman 2025-11-13 01:00:48 +03:00
parent 3362bf89e2
commit 23de80f94d
6 changed files with 424 additions and 20 deletions

View file

@ -0,0 +1,30 @@
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create directory for database
RUN mkdir -p /app/data
# Set environment variables
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
# Run the admin bot
CMD ["python", "admin_bot.py"]