Spaces:
Sleeping
Sleeping
Download Dockerfile from bagustenan/backend: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/spaces/bagustenan/backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bagustenan/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bagustenan/backend/resolve/main/Dockerfile
644 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV HOME=/home/user | |
| ENV PATH=$HOME/.local/bin:$PATH | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| WORKDIR $HOME | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir --upgrade --force-reinstall -r requirements.txt | |
| COPY --chown=user . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "server:app_server", "--host", "0.0.0.0", "--port", "7860"] |