Spaces:
Sleeping
Sleeping
Download Dockerfile from Engmhabib/MCP-EdTech: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/Engmhabib/MCP-EdTech/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Engmhabib/MCP-EdTech/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Engmhabib/MCP-EdTech/resolve/main/Dockerfile
526 Bytes
| # 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"] | |