File size: 630 Bytes
bfb43ae
7a5aa35
bfb43ae
 
 
 
31f50b7
bfb43ae
 
 
 
7168ed5
7a5aa35
 
7168ed5
 
 
 
 
1fca37b
bfb43ae
 
cd583ae
7168ed5
bfb43ae
 
719047c
7168ed5
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"]