Download Dockerfile from Thomas-L-debug/Climate_Fake_News_API: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/Thomas-L-debug/Climate_Fake_News_API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Thomas-L-debug/Climate_Fake_News_API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Thomas-L-debug/Climate_Fake_News_API/resolve/main/Dockerfile
445 Bytes
| FROM python:3.10 | |
| WORKDIR /home/app | |
| RUN apt-get update -y && \ | |
| apt-get install -y nano unzip libgl1 curl && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN curl -fsSL https://get.deta.dev/cli.sh | sh | |
| RUN useradd -m appuser | |
| COPY requirements.txt /dependencies/requirements.txt | |
| RUN pip install -r /dependencies/requirements.txt | |
| COPY . /home/app | |
| USER appuser | |
| CMD gunicorn app:app --bind 0.0.0.0:$PORT --worker-class uvicorn.workers.UvicornWorker |