Spaces:
Runtime error
Runtime error
Download Dockerfile from mo01018/Deployment-Trial: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/spaces/mo01018/Deployment-Trial/resolve/refs%2Fpr%2F1/Dockerfile
- Command line
-
hf download hf://spaces/mo01018/Deployment-Trial@refs/pr/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mo01018/Deployment-Trial/resolve/refs%2Fpr%2F1/Dockerfile
404 Bytes
| # Use an official lightweight Python image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy all files into the container | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the port Flask runs on | |
| EXPOSE 7860 | |
| # Run the Flask app | |
| CMD ["python", "app.py"] | |