Download Dockerfile from Ferdinann/HomeCheck: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/Ferdinann/HomeCheck/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ferdinann/HomeCheck/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ferdinann/HomeCheck/resolve/main/Dockerfile
467 Bytes
| FROM python:3.10 | |
| # Set working directory | |
| WORKDIR /code | |
| # Copy requirements dan install dependencies | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy seluruh file ke dalam container | |
| COPY . /code | |
| # Berikan hak akses ke folder cache (penting untuk Hugging Face) | |
| RUN mkdir -p /code/cache && chmod -R 777 /code/cache | |
| ENV GRADIO_TEMP_DIR="/code/cache" | |
| # Jalankan aplikasi | |
| CMD ["python", "app.py"] |