Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +17 -9
Dockerfile
CHANGED
|
@@ -1,20 +1,28 @@
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
-
# Install
|
| 4 |
-
RUN apt-get update && apt-get install -y
|
| 5 |
-
curl
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
-
#
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
-
# Install
|
| 15 |
RUN pip install --no-cache-dir . gradio PyYAML
|
| 16 |
|
| 17 |
-
#
|
|
|
|
|
|
|
| 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"]
|