Spaces:
Sleeping
Sleeping
File size: 727 Bytes
703ce5f 3e1c9a6 703ce5f 3e1c9a6 703ce5f 3e1c9a6 703ce5f 3e1c9a6 703ce5f | 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 | FROM python:3.9-slim
# 1. Install System Dependencies (Node, Git, Curl)
RUN apt-get update && apt-get install -y \
curl \
git \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean
# 2. Install Prism Mock Server
RUN npm install -g @stoplight/prism-cli
WORKDIR /app
# 3. Clone your repo directly into the container
# This fixes the "pyproject.toml not found" error because we control the path
RUN git clone https://github.com/diplomat-bit/aibank.git .
# 4. Install the SDK and UI requirements
RUN pip install --no-cache-dir . gradio PyYAML
# 5. Copy the app script (we will create this next)
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"] |