Spaces:
Build error
Build error
Update Dockerfile to use new app entry point and enhance requirements.txt with additional dependencies. Remove obsolete streamlit_app.py file.
0a40afa Download src/docker/Dockerfile from levalencia/doctorecord: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/spaces/levalencia/doctorecord/resolve/main/src/docker/Dockerfile
- Command line
-
hf download hf://spaces/levalencia/doctorecord/src/docker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/levalencia/doctorecord/resolve/main/src/docker/Dockerfile
593 Bytes
| # ---------- builder ------------- | |
| FROM python:3.11-slim AS builder | |
| RUN pip install --no-cache-dir uv | |
| WORKDIR /app | |
| COPY pyproject.toml ./ | |
| RUN uv pip install -r <(uv pip compile --quiet) \ | |
| && uv pip freeze > /installed.txt # layer cache | |
| COPY . . | |
| # ---------- runtime ------------- | |
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| COPY --from=builder /installed.txt /installed.txt | |
| RUN xargs -a /installed.txt pip install --no-cache-dir | |
| COPY . . | |
| ENTRYPOINT ["bash", "docker/entrypoint.sh"] |