2026-03-11 19:43:33 +00:00
|
|
|
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 .
|
|
|
|
|
|
2026-03-13 13:22:46 +00:00
|
|
|
# Expose ports (API on 5000, Admin on 5001)
|
|
|
|
|
EXPOSE 5000 5001
|
2026-03-11 19:43:33 +00:00
|
|
|
|
2026-03-13 13:22:46 +00:00
|
|
|
# Run the application with both API and Admin servers
|
|
|
|
|
CMD ["python", "app.py"]
|