Spaces:
Paused
Paused
Download Dockerfile from imseldrith/copilot-api: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/spaces/imseldrith/copilot-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/imseldrith/copilot-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/imseldrith/copilot-api/resolve/main/Dockerfile
448 Bytes
| FROM oven/bun:1.2.19-alpine AS builder | |
| WORKDIR /app | |
| COPY package.json bun.lock ./ | |
| RUN bun install --frozen-lockfile | |
| COPY . . | |
| RUN bun run build | |
| FROM oven/bun:1.2.19-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 | |
| EXPOSE 7860 | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh | |
| ENTRYPOINT ["/entrypoint.sh"] | |