kleervoyans commited on
Commit
6c06de9
·
verified ·
1 Parent(s): 8f2c84b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,13 +1,20 @@
1
- FROM python:3.9-slim
 
 
 
 
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt ./
6
-
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
9
  COPY app.py ./
10
 
 
11
  EXPOSE 8501
12
 
 
13
  ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.headless=true"]
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install dependencies for bitsandbytes and git
4
+ RUN apt-get update && apt-get install -y git libgomp1 && \
5
+ rm -rf /var/lib/apt/lists/*
6
 
7
  WORKDIR /app
8
 
9
+ # Copy and install Python dependencies
10
  COPY requirements.txt ./
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Copy application code
14
  COPY app.py ./
15
 
16
+ # Expose Streamlit port
17
  EXPOSE 8501
18
 
19
+ # Launch the Streamlit app
20
  ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.headless=true"]