Spaces:
Sleeping
Sleeping
Download Dockerfile from salek877/FastAPI_for_Classifier: direct link, hf CLI and curl.
- Browser
- Download file 430 Bytes
-
https://huggingface.co/spaces/salek877/FastAPI_for_Classifier/resolve/fa72d755e7eff5fb78c972007e9c0976a52e7eb5/Dockerfile
- Command line
-
hf download hf://spaces/salek877/FastAPI_for_Classifier@fa72d755e7eff5fb78c972007e9c0976a52e7eb5/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/salek877/FastAPI_for_Classifier/resolve/fa72d755e7eff5fb78c972007e9c0976a52e7eb5/Dockerfile
430 Bytes
| FROM python:3.9 | |
| WORKDIR /main | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY main.py /app/main.py | |
| COPY model/model.h5 /app/model/model.h5 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| CMD ["uvicorn", "main:app", "--host", "127.0.0.1", "--port", "8000"] |