Download Dockerfile from abualzait/MAT: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/spaces/abualzait/MAT/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abualzait/MAT/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abualzait/MAT/resolve/main/Dockerfile
388 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Ensure persistent data directory exists | |
| RUN mkdir -p /data && chmod 777 /data | |
| # Declare volume for data persistence across container restarts | |
| VOLUME ["/data"] | |
| # Copy all project files | |
| COPY . . | |
| # Expose default port | |
| EXPOSE 7860 | |
| EXPOSE 8080 | |
| # Default port for Hugging Face Spaces | |
| ENV PORT=7860 | |
| # Start the MAT server | |
| CMD ["python", "server.py"] | |