Download Dockerfile from Junivert/rAI: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/spaces/Junivert/rAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Junivert/rAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Junivert/rAI/resolve/main/Dockerfile
454 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=51379 | |
| # install git | |
| RUN apt-get update \ | |
| && apt-get install -y git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # clone repo | |
| RUN git clone https://github.com/gilangf3000/rAI.git . | |
| WORKDIR /app/backend | |
| # install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 51379 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "51379"] |