Raymond Weitekamp commited on
Commit
c112645
·
1 Parent(s): 5974831

Remove xvfb-run as it may be causing startup issues

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -11,7 +11,6 @@ RUN apt-get update && apt-get install -y \
11
  libx11-6 \
12
  libx11-dev \
13
  libxrender1 \
14
- xvfb \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
  # Create matplotlib config directory with proper permissions
@@ -43,5 +42,5 @@ RUN wget https://github.com/gitpod-io/openvscode-server/releases/download/openvs
43
  # Expose port 7860 for Hugging Face Spaces
44
  EXPOSE 7860
45
 
46
- # Run the application with xvfb-run
47
- CMD ["xvfb-run", "--auto-servernum", "python", "-c", "import cadviewer; from nicegui import app; app.native.start_args['port'] = 7860; cadviewer.ui.run(native=False, host='0.0.0.0', port=7860)"]
 
11
  libx11-6 \
12
  libx11-dev \
13
  libxrender1 \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # Create matplotlib config directory with proper permissions
 
42
  # Expose port 7860 for Hugging Face Spaces
43
  EXPOSE 7860
44
 
45
+ # Run the application
46
+ CMD ["python", "-c", "import cadviewer; from nicegui import app; app.native.start_args['port'] = 7860; cadviewer.ui.run(native=False, host='0.0.0.0', port=7860)"]