RohanVashisht commited on
Commit
7168ed5
·
verified ·
1 Parent(s): a2fbece

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -11
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
- # Start from barebones Debian
2
  FROM debian:bookworm-slim
3
 
4
  # Install deps
@@ -8,24 +7,23 @@ RUN apt-get update && apt-get install -y \
8
 
9
  # Install Bun
10
  RUN curl -fsSL https://bun.sh/install | bash
11
-
12
- # Add Bun to PATH
13
  ENV PATH="/root/.bun/bin:$PATH"
14
 
15
- # Set working directory
16
  WORKDIR /app
17
 
18
- # Clone repo
19
- RUN git clone https://github.com/zigistry/database .
 
 
 
20
 
21
  # Install dependencies
22
  RUN bun install --production
23
 
24
- # Hugging Face expects the app to run on $PORT
25
  ENV PORT=7860
26
-
27
- # Expose that port
28
  EXPOSE $PORT
29
 
30
- # Run app
31
- CMD ["bun", "./src/src/index.ts"]
 
 
1
  FROM debian:bookworm-slim
2
 
3
  # Install deps
 
7
 
8
  # Install Bun
9
  RUN curl -fsSL https://bun.sh/install | bash
 
 
10
  ENV PATH="/root/.bun/bin:$PATH"
11
 
12
+ # Set working directory for your app
13
  WORKDIR /app
14
 
15
+ # Copy your Hugging Face repo code (this includes ./src/index.ts)
16
+ COPY . .
17
+
18
+ # Clone database into a subfolder (keeps ./src/index.ts safe)
19
+ RUN git clone https://github.com/zigistry/database ./database
20
 
21
  # Install dependencies
22
  RUN bun install --production
23
 
24
+ # Hugging Face port
25
  ENV PORT=7860
 
 
26
  EXPOSE $PORT
27
 
28
+ # Run your app
29
+ CMD ["bun", "src/index.ts"]