Spaces:
Sleeping
Sleeping
| FROM debian:bookworm-slim | |
| # Install deps | |
| RUN apt-get update && apt-get install -y \ | |
| curl git unzip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Bun | |
| RUN curl -fsSL https://bun.sh/install | bash | |
| ENV PATH="/root/.bun/bin:$PATH" | |
| # Set working directory for your app | |
| WORKDIR /app | |
| # Copy your Hugging Face repo code (this includes ./src/index.ts) | |
| COPY . . | |
| # Clone database into a subfolder (keeps ./src/index.ts safe) | |
| RUN git clone https://github.com/zigistry/database ./database | |
| # Install dependencies | |
| RUN bun install --production | |
| # Hugging Face port | |
| ENV PORT=7860 | |
| EXPOSE $PORT | |
| # Run your app | |
| CMD ["bun", "src/index.ts"] | |