Spaces:
Configuration error
Configuration error
Download backend/Dockerfile from prathammodels/smart-attendance-api: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/prathammodels/smart-attendance-api/resolve/main/backend/Dockerfile
- Command line
-
hf download hf://spaces/prathammodels/smart-attendance-api/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/prathammodels/smart-attendance-api/resolve/main/backend/Dockerfile
406 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN python -m prisma generate | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "python -m prisma db push && uvicorn main:app --host 0.0.0.0 --port 7860"] | |