Download Dockerfile from paisaly/backend: direct link, hf CLI and curl.
- Browser
- Download file 844 Bytes
-
https://huggingface.co/spaces/paisaly/backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/paisaly/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/paisaly/backend/resolve/main/Dockerfile
844 Bytes
| FROM python:3.14-slim | |
| # Injected by CI: release version (2.1.0) or short sha for edge builds | |
| ARG APP_VERSION=dev | |
| ENV APP_VERSION=${APP_VERSION} | |
| # Install curl and redis-server for local in-container click & token caching | |
| RUN apt-get update && apt-get install -y --no-install-recommends curl redis-server \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install uv. | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | |
| # Copy the application into the container. | |
| COPY . /app/ | |
| # Install the application dependencies. | |
| WORKDIR /app | |
| RUN uv sync --frozen --no-cache | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "redis-server --daemonize yes --port 6379 --bind 127.0.0.1 --dir /tmp --pidfile /tmp/redis.pid --logfile '' --save '' && uv run uvicorn app.main:app --host 0.0.0.0 --port 7860 --proxy-headers --forwarded-allow-ips=* --no-access-log"] | |