BinduRP commited on
Commit
d29f217
·
verified ·
1 Parent(s): 6bfcd39

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -3
Dockerfile CHANGED
@@ -2,12 +2,21 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt .
6
-
7
- RUN pip install --no-cache-dir -r requirements.txt
8
 
 
9
  COPY . .
10
 
 
 
 
 
 
 
 
11
  EXPOSE 8501
12
 
 
13
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install unzip utility
6
+ RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*
 
7
 
8
+ # Copy all files
9
  COPY . .
10
 
11
+ # Unzip vectorstore
12
+ RUN unzip vectorstore.zip -d vectorstore
13
+
14
+ # Install dependencies
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Expose Streamlit port
18
  EXPOSE 8501
19
 
20
+ # Run Streamlit
21
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
22
+