Spaces:
Sleeping
Sleeping
Download Dockerfile from lilcoderi/cv-matcher-app: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/lilcoderi/cv-matcher-app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lilcoderi/cv-matcher-app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lilcoderi/cv-matcher-app/resolve/main/Dockerfile
443 Bytes
| # Gunakan image Python yang ringan | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /code | |
| # Copy file requirements | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy semua file ke dalam container | |
| COPY . . | |
| # Jalankan Uvicorn (FastAPI) pada port 7860 (port standar HF Spaces) | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |