pvanand commited on
Commit
f536994
·
1 Parent(s): 217ef62

Update script to enable ngrok

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -1
Dockerfile CHANGED
@@ -49,11 +49,28 @@ COPY . .
49
  # Switch to the non-privileged user to run the application.
50
  USER 1001
51
 
 
 
52
  # set entrypoint for interactive shells
53
  #ENTRYPOINT [ "rasa" ]
54
 
55
  # Expose the port that the application listens on.
56
- EXPOSE 7860
57
 
58
  # Run the application.
59
  #CMD ["run","--enable-api","--port","7860"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  # Switch to the non-privileged user to run the application.
50
  USER 1001
51
 
52
+ ### Method v1 ###
53
+
54
  # set entrypoint for interactive shells
55
  #ENTRYPOINT [ "rasa" ]
56
 
57
  # Expose the port that the application listens on.
58
+ #EXPOSE 7860
59
 
60
  # Run the application.
61
  #CMD ["run","--enable-api","--port","7860"]
62
+
63
+
64
+ ### Method v2 ###
65
+
66
+ # Copy the entrypoint script
67
+ COPY entrypoint.sh /entrypoint.sh
68
+
69
+ # Make the entrypoint script executable
70
+ RUN chmod +x /entrypoint.sh
71
+
72
+ # Set the entrypoint
73
+ ENTRYPOINT ["/entrypoint.sh"]
74
+
75
+ # Run the application
76
+ CMD ["run", "--enable-api", "--port", "7860"]