Update Dockerfile
Browse files- Dockerfile +18 -11
Dockerfile
CHANGED
|
@@ -1,16 +1,23 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
|
| 8 |
-
COPY
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
EXPOSE 7860
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
CMD ["
|
|
|
|
|
|
| 1 |
+
FROM rasa/rasa:3.6.0
|
| 2 |
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
USER root
|
| 5 |
|
| 6 |
+
# Copy all necessary files
|
| 7 |
+
COPY domain.yml config.yml endpoints.yml credentials.yml /app/
|
| 8 |
+
COPY data /app/data
|
| 9 |
+
COPY actions /app/actions
|
| 10 |
+
COPY models /app/models
|
| 11 |
|
| 12 |
+
# Install any additional requirements
|
| 13 |
+
RUN pip install --no-cache-dir rasa[transformers]
|
| 14 |
+
|
| 15 |
+
RUN chown -R 1001:1001 /app
|
| 16 |
+
USER 1001
|
| 17 |
+
|
| 18 |
+
# Expose port 7860 (Hugging Face Spaces requirement)
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
+
# Start Rasa on port 7860
|
| 22 |
+
CMD ["run", "--model", "models", "--enable-api", "--cors", "*", "--port", "7860"]
|
| 23 |
+
|