Download Dockerfile from CREATORJD/alpecca-cloud-core: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/spaces/CREATORJD/alpecca-cloud-core/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CREATORJD/alpecca-cloud-core/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CREATORJD/alpecca-cloud-core/resolve/main/Dockerfile
1.88 kB
| FROM node:22-bookworm-slim AS source | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends git ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| ARG ALPECCA_GIT_REF=codex/voice-session-audio-normalization | |
| RUN git clone --depth 1 --branch "${ALPECCA_GIT_REF}" \ | |
| https://github.com/CreatorJD1/alpaccaai.git /opt/alpecca | |
| WORKDIR /opt/alpecca/apps/house-hq | |
| RUN npm ci && npm run build | |
| FROM python:3.12-slim | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PYTHONPATH=/opt/alpecca \ | |
| PORT=7860 \ | |
| ALPECCA_SOURCE_ROOT=/opt/alpecca \ | |
| ALPECCA_CLOUD_RUNTIME_ROOT=/tmp/alpecca-cloud-core \ | |
| ALPECCA_LLM_BACKEND=hf \ | |
| ALPECCA_HF_MODEL=Qwen/Qwen3.5-9B \ | |
| ALPECCA_REFLECT_THINK=0 \ | |
| ALPECCA_CONTINUITY_ROLE=cloud-standby \ | |
| ALPECCA_REMOTE=1 \ | |
| ALPECCA_SERVER_PORT=7860 \ | |
| ALPECCA_TUNNEL=off | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends ca-certificates tini \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && useradd --create-home --uid 1000 alpecca \ | |
| && install -d -o 1000 -g 1000 /opt/hf-cloud-core /tmp/alpecca-cloud-core | |
| COPY requirements.txt /tmp/cloud-core-requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/cloud-core-requirements.txt | |
| COPY --from=source /opt/alpecca /opt/alpecca | |
| COPY --chown=1000:1000 app.py cloud_entrypoint.py start.sh /opt/hf-cloud-core/ | |
| RUN rm -rf /opt/alpecca/.git /opt/alpecca/deploy /opt/alpecca/docs /opt/alpecca/scripts \ | |
| && sed -i 's/\r$//' /opt/hf-cloud-core/start.sh \ | |
| && chmod 0555 /opt/hf-cloud-core/start.sh | |
| WORKDIR /opt/alpecca | |
| USER 1000 | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=3s --start-period=60s --retries=2 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/healthz', timeout=2).read()" | |
| ENTRYPOINT ["/usr/bin/tini", "--", "/opt/hf-cloud-core/start.sh"] | |