admin08077 commited on
Commit
3e1c9a6
·
verified ·
1 Parent(s): 5a89405

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -9
Dockerfile CHANGED
@@ -1,20 +1,28 @@
1
  FROM python:3.9-slim
2
 
3
- # Install Node.js and Prism Mock Server
4
- RUN apt-get update && apt-get install -y curl && \
5
- curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
6
- apt-get install -y nodejs && \
7
- npm install -g @stoplight/prism-cli
 
 
 
 
 
8
 
9
  WORKDIR /app
10
 
11
- # Copy all files from your diplomat-bit/aibank repo
12
- COPY . .
 
13
 
14
- # Install your Python SDK and UI library
15
  RUN pip install --no-cache-dir . gradio PyYAML
16
 
17
- # Port for Gradio
 
 
18
  EXPOSE 7860
19
 
20
  CMD ["python", "app.py"]
 
1
  FROM python:3.9-slim
2
 
3
+ # 1. Install System Dependencies (Node, Git, Curl)
4
+ RUN apt-get update && apt-get install -y \
5
+ curl \
6
+ git \
7
+ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
8
+ && apt-get install -y nodejs \
9
+ && apt-get clean
10
+
11
+ # 2. Install Prism Mock Server
12
+ RUN npm install -g @stoplight/prism-cli
13
 
14
  WORKDIR /app
15
 
16
+ # 3. Clone your repo directly into the container
17
+ # This fixes the "pyproject.toml not found" error because we control the path
18
+ RUN git clone https://github.com/diplomat-bit/aibank.git .
19
 
20
+ # 4. Install the SDK and UI requirements
21
  RUN pip install --no-cache-dir . gradio PyYAML
22
 
23
+ # 5. Copy the app script (we will create this next)
24
+ COPY app.py .
25
+
26
  EXPOSE 7860
27
 
28
  CMD ["python", "app.py"]