Spaces:
Sleeping
Sleeping
Download Dockerfile from imspsycho/copilot-api: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/spaces/imspsycho/copilot-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/imspsycho/copilot-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/imspsycho/copilot-api/resolve/main/Dockerfile
624 Bytes
| FROM oven/bun:1.3.11-alpine AS builder | |
| WORKDIR /app | |
| COPY ./package.json ./bun.lock ./ | |
| RUN bun install --frozen-lockfile | |
| COPY . . | |
| RUN bun run build | |
| FROM oven/bun:1.3.11-alpine AS runner | |
| WORKDIR /app | |
| COPY ./package.json ./bun.lock ./ | |
| RUN bun install --frozen-lockfile --production --ignore-scripts --no-cache | |
| COPY --from=builder /app/dist ./dist | |
| COPY --from=builder /app/pages ./pages | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ | |
| CMD wget --spider -q http://localhost:4141/ || exit 1 | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh | |
| ENTRYPOINT ["/entrypoint.sh"] | |