James Frecheville commited on
Commit
d4bd95e
·
1 Parent(s): 94abab7

Update port configuration to use default Gradio port

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -1
Dockerfile CHANGED
@@ -64,7 +64,7 @@ RUN chown -R user:user /app
64
 
65
  # Set environment variables
66
  ENV GRADIO_SERVER_NAME=0.0.0.0
67
- ENV GRADIO_SERVER_PORT=7861
68
  ENV GRADIO_ANALYTICS_ENABLED=false
69
  ENV GRADIO_ALLOW_FLAGGING=false
70
  ENV GRADIO_QUEUE_ENABLED=false
@@ -76,7 +76,7 @@ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
76
  USER user
77
 
78
  # Expose the port
79
- EXPOSE 7861
80
 
81
  # Run the application with Xvfb
82
  CMD Xvfb :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & python app.py
 
64
 
65
  # Set environment variables
66
  ENV GRADIO_SERVER_NAME=0.0.0.0
67
+ ENV GRADIO_SERVER_PORT=7860
68
  ENV GRADIO_ANALYTICS_ENABLED=false
69
  ENV GRADIO_ALLOW_FLAGGING=false
70
  ENV GRADIO_QUEUE_ENABLED=false
 
76
  USER user
77
 
78
  # Expose the port
79
+ EXPOSE 7860
80
 
81
  # Run the application with Xvfb
82
  CMD Xvfb :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & python app.py
app.py CHANGED
@@ -21,7 +21,7 @@ demo = create_ui()
21
  if __name__ == "__main__":
22
  demo.launch(
23
  server_name="0.0.0.0",
24
- server_port=7861,
25
  share=False,
26
  favicon_path="assets/owl-favicon.ico",
27
  show_error=True,
 
21
  if __name__ == "__main__":
22
  demo.launch(
23
  server_name="0.0.0.0",
24
+ server_port=7860,
25
  share=False,
26
  favicon_path="assets/owl-favicon.ico",
27
  show_error=True,