Spaces:
Sleeping
Sleeping
Download Dockerfile from everydaytok/testing_space: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/everydaytok/testing_space/resolve/refs%2Fpr%2F1/Dockerfile
- Command line
-
hf download hf://spaces/everydaytok/testing_space@refs/pr/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/everydaytok/testing_space/resolve/refs%2Fpr%2F1/Dockerfile
530 Bytes
| # Use the official lightweight Python image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy dependencies and install them | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Create a directory for static files (frontend) if it doesn't exist | |
| RUN mkdir -p static | |
| # Expose the port Hugging Face expects | |
| EXPOSE 7860 | |
| # Run the FastAPI server | |
| # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |
| CMD ["python", "app.py"] |