Download Dockerfile from BitBean/company: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/spaces/BitBean/company/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BitBean/company/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BitBean/company/resolve/main/Dockerfile
473 Bytes
| # Gunakan base image Python yang ringan | |
| FROM python:3.9-slim | |
| # Set direktori kerja di dalam container | |
| WORKDIR /app | |
| # Salin file requirements dan install dependensi | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Salin seluruh kode aplikasi ke dalam container | |
| COPY . . | |
| # Beri tahu Docker port mana yang akan diekspos (ini tidak berubah) | |
| EXPOSE 8080 | |
| # GANTI PERINTAH LAMA DENGAN YANG INI | |
| CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"] |