Spaces:
Sleeping
Sleeping
Download Dockerfile from Techbitforge/hello_server: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/Techbitforge/hello_server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Techbitforge/hello_server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Techbitforge/hello_server/resolve/main/Dockerfile
406 Bytes
| # Use lightweight Python image | |
| FROM python:3.10-slim | |
| # Environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Working directory | |
| WORKDIR /app | |
| # Copy requirements first (better caching) | |
| COPY requirements.txt . | |
| # Install Python deps | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app | |
| COPY app.py . | |
| # Expose HF port | |
| EXPOSE 7860 | |
| # start Flask server | |
| CMD python app.py | |