Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
# Install pydantic v1 first
|
| 4 |
+
RUN pip install pydantic==1.10.7
|
| 5 |
+
|
| 6 |
+
# Copy your requirements.txt and install remaining dependencies
|
| 7 |
+
COPY requirements.txt .
|
| 8 |
+
RUN pip install -r requirements.txt
|
| 9 |
+
|
| 10 |
+
# Copy the rest of your app
|
| 11 |
+
COPY . /app
|
| 12 |
+
WORKDIR /app
|
| 13 |
+
CMD ["streamlit", "run", "app.py"]
|