Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -28,9 +28,12 @@ COPY . .
|
|
28 |
# Create a non-privileged user that the app will run under.
|
29 |
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
|
30 |
# Switch to the non-privileged user to run the application.
|
|
|
|
|
|
|
|
|
31 |
USER 1001
|
32 |
|
33 |
-
# set entrypoint for interactive shells
|
34 |
ENTRYPOINT [ "rasa" ]
|
35 |
|
36 |
# Expose the port that the application listens on.
|
|
|
28 |
# Create a non-privileged user that the app will run under.
|
29 |
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
|
30 |
# Switch to the non-privileged user to run the application.
|
31 |
+
|
32 |
+
# Run the Python script to generate the FAISS index and save the model.
|
33 |
+
RUN python create_faiss_index.py
|
34 |
+
|
35 |
USER 1001
|
36 |
|
|
|
37 |
ENTRYPOINT [ "rasa" ]
|
38 |
|
39 |
# Expose the port that the application listens on.
|