Spaces:
Runtime error
Runtime error
Download Dockerfile from firebird-technologies/NoteStack-Test: direct link, hf CLI and curl.
- Browser
- Download file 762 Bytes
-
https://huggingface.co/spaces/firebird-technologies/NoteStack-Test/resolve/52ec279e6108c8a40d96dbfbb4d5573a02472df3/Dockerfile
- Command line
-
hf download hf://spaces/firebird-technologies/NoteStack-Test@52ec279e6108c8a40d96dbfbb4d5573a02472df3/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/firebird-technologies/NoteStack-Test/resolve/52ec279e6108c8a40d96dbfbb4d5573a02472df3/Dockerfile
762 Bytes
| # Hugging Face Spaces image (the Space builds this root Dockerfile from the whole repo). | |
| # One container, non-root uid 1000, port 7860; the worker runs inside the API process. | |
| # Local docker-compose builds backend/Dockerfile instead. | |
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 \ | |
| ENV=production \ | |
| RUN_WORKER_IN_API=true \ | |
| CORPUS_CACHE_DIR=/app/.corpus-cache \ | |
| LOCAL_STORAGE_DIR=/app/.storage | |
| COPY backend/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user backend/ . | |
| RUN rm -f .env | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 7860 --proxy-headers --forwarded-allow-ips='*'"] | |