atkiya110 commited on
Commit
dcc1b27
·
verified ·
1 Parent(s): 08bd430

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -11
Dockerfile CHANGED
@@ -1,16 +1,23 @@
1
- FROM node:20
2
 
3
- # Install http-server to serve the static site
4
- RUN npm install -g http-server
5
 
6
- # Build the app
7
- WORKDIR /usr/app
8
- COPY ./ /usr/app
9
- RUN npm install
10
- RUN npm run sources && npm run build
11
 
12
- # Expose port 7860
 
 
 
 
 
 
13
  EXPOSE 7860
14
 
15
- # Serve the static site from the /usr/app/build directory on host 0.0.0.0 and port 7860
16
- CMD ["http-server", "/usr/app/build", "-a", "0.0.0.0", "-p", "7860"]
 
 
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
+