Spaces:
Running
Running
Download Dockerfile from fahmiaziz/api-embedding: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/fahmiaziz/api-embedding/resolve/d2394fe49e086daf62aac321cb3d20b233ba23a2/Dockerfile
- Command line
-
hf download hf://spaces/fahmiaziz/api-embedding@d2394fe49e086daf62aac321cb3d20b233ba23a2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fahmiaziz/api-embedding/resolve/d2394fe49e086daf62aac321cb3d20b233ba23a2/Dockerfile
413 Bytes
| # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| # you will also find guides on how best to write your Dockerfile | |
| FROM python:3.9-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user . /app | |
| CMD ["python", "app.py"] | |