Spaces:
Runtime error
Runtime error
Download Dockerfile from abhicodes/storycircleapi: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/spaces/abhicodes/storycircleapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abhicodes/storycircleapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abhicodes/storycircleapi/resolve/main/Dockerfile
441 Bytes
| # Menggunakan base image Python 3.9 | |
| FROM python:3.9 | |
| # Mengatur direktori kerja ke /code | |
| WORKDIR /code | |
| # Menyalin requirements.txt ke /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Menginstal dependensi dari requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Menyalin seluruh konten proyek Anda ke /code | |
| COPY . /code | |
| # CMD untuk menjalankan Gunicorn | |
| CMD ["gunicorn", "main:app", "-b", "0.0.0.0:7860"] |