Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY . /app/
|
| 6 |
+
|
| 7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
+
|
| 9 |
+
# Expose port for Gradio and Rasa
|
| 10 |
+
EXPOSE 7860 5005
|
| 11 |
+
|
| 12 |
+
# Train the model (if needed; alternatively, include pre-trained models in your repo)
|
| 13 |
+
RUN rasa train
|
| 14 |
+
|
| 15 |
+
# Start the app
|
| 16 |
+
CMD ["python", "app.py"]
|