Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|