legend1234 commited on
Commit
8a16774
·
1 Parent(s): 781edd3

Use port 7860

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -1
  2. README.md +2 -1
  3. app.py +2 -1
Dockerfile CHANGED
@@ -24,8 +24,9 @@ RUN mkdir -p uploads md_files && \
24
  # Set matplotlib config directory
25
  ENV MPLCONFIGDIR=/tmp/matplotlib
26
 
27
- EXPOSE 8009
28
 
29
  # Default command
30
  # CMD ["gunicorn", "--config", "gunicorn_config.py", "app:app"]
31
  CMD ["python", "app.py"]
 
 
24
  # Set matplotlib config directory
25
  ENV MPLCONFIGDIR=/tmp/matplotlib
26
 
27
+ EXPOSE 7860
28
 
29
  # Default command
30
  # CMD ["gunicorn", "--config", "gunicorn_config.py", "app:app"]
31
  CMD ["python", "app.py"]
32
+
README.md CHANGED
@@ -1,10 +1,11 @@
1
  ---
2
  title: Selector
3
- emoji: 🦀
4
  colorFrom: gray
5
  colorTo: gray
6
  sdk: docker
7
  pinned: false
8
  license: gpl-3.0
 
9
  ---
10
 
 
1
  ---
2
  title: Selector
3
+ emoji: 🐳
4
  colorFrom: gray
5
  colorTo: gray
6
  sdk: docker
7
  pinned: false
8
  license: gpl-3.0
9
+ app_port: 7860
10
  ---
11
 
app.py CHANGED
@@ -512,4 +512,5 @@ def health_check():
512
  return create_json_response({"status": "healthy"})
513
 
514
  if __name__ == "__main__":
515
- app.run(debug=True, host="0.0.0.0", port=8009)
 
 
512
  return create_json_response({"status": "healthy"})
513
 
514
  if __name__ == "__main__":
515
+ app.run(debug=False, host="0.0.0.0", port=7860)
516
+