FaizanShaikh1 commited on
Commit
982e8f1
·
verified ·
1 Parent(s): d8ccdd3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,9 +1,12 @@
1
- FROM python:3.9-slim
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  libgl1-mesa-glx \
6
  libglib2.0-0 \
 
 
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  # Set working directory
@@ -22,5 +25,5 @@ RUN mkdir -p models temp
22
  # Expose port for Shiny
23
  EXPOSE 8000
24
 
25
- # Run the application
26
- CMD ["python", "app.py"]
 
1
+ FROM python:3.11-slim
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  libgl1-mesa-glx \
6
  libglib2.0-0 \
7
+ libsm6 \
8
+ libxext6 \
9
+ libxrender-dev \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Set working directory
 
25
  # Expose port for Shiny
26
  EXPOSE 8000
27
 
28
+ # Run the application with Shiny mode
29
+ CMD ["python", "app.py", "--shiny"]