MVPilgrim commited on
Commit
6281b13
·
1 Parent(s): ea3952b
Files changed (2) hide show
  1. Dockerfile +7 -5
  2. semsearch.py +2 -2
Dockerfile CHANGED
@@ -78,8 +78,10 @@ WORKDIR /app
78
  #CMD ["/app/startupDbgUI.sh"]
79
  EXPOSE 8501
80
  #CMD /app/startup.sh; /usr/local/bin/streamlit run semsearch.py --server.port=8501 --server.address=0.0.0.0
81
- CMD streamlit run stream.py \
82
- --server.headless true \
83
- --server.enableCORS false \
84
- --server.enableXsrfProtection false \
85
- --server.fileWatcherType none
 
 
 
78
  #CMD ["/app/startupDbgUI.sh"]
79
  EXPOSE 8501
80
  #CMD /app/startup.sh; /usr/local/bin/streamlit run semsearch.py --server.port=8501 --server.address=0.0.0.0
81
+ #CMD streamlit run stream.py \
82
+ # --server.headless true \
83
+ # --server.enableCORS false \
84
+ # --server.enableXsrfProtection false \
85
+ # --server.fileWatcherType none
86
+
87
+ CMD streamlit run stream.py
semsearch.py CHANGED
@@ -34,8 +34,8 @@ logging.basicConfig(level=logging.INFO)
34
 
35
  def runStartup():
36
  result = subprocess.run(["bash", "startup.sh"], capture_output=True, text=True)
37
- #print("Output:", result.stdout)
38
- #print("Error:", result.stderr)
39
  logger(f"Return code: {result.returncode}")
40
  logger("### Running startup.sh")
41
  runStartup()
 
34
 
35
  def runStartup():
36
  result = subprocess.run(["bash", "startup.sh"], capture_output=True, text=True)
37
+ logger(f"startup.sh stdout: {result.stdout}")
38
+ logger(f"startup.sh stderr: {result.stderr}")
39
  logger(f"Return code: {result.returncode}")
40
  logger("### Running startup.sh")
41
  runStartup()