FROM python:3.11-slim WORKDIR /app # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY app.py . COPY versions.json . # Expose ports (API on 5000, Admin on 5001) EXPOSE 5000 5001 # Run the application with both API and Admin servers CMD ["python", "app.py"]