Download Dockerfile from vnsd13/nwspd: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/vnsd13/nwspd/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vnsd13/nwspd/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vnsd13/nwspd/resolve/main/Dockerfile
437 Bytes
| # Gunakan Python base image | |
| FROM python:3.11-slim-bookworm | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy semua file | |
| COPY . . | |
| # Update system packages to reduce vulnerabilities | |
| RUN apt-get update && apt-get upgrade -y && apt-get clean | |
| # Install dependensi | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Expose port | |
| EXPOSE 8000 | |
| # Jalankan aplikasi | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |