MCP-EdTech / Dockerfile
Engmhabib's picture
Upload 30 files
942216e verified
# Use Python 3.11 image
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/storage/contexts /app/storage/students /app/storage/progress/assessments /app/storage/progress/skills \
&& chmod -R 777 /app/storage
RUN mkdir -p /app/static \
&& cp -r /app/src/static/* /app/static/ 2>/dev/null || true \
&& chmod -R 755 /app/static
ENV PORT=7860
ENV PYTHONPATH=/app
EXPOSE 7860
CMD ["python", "main.py"]