Senasu commited on
Commit
9d7b7e0
·
verified ·
1 Parent(s): 597871b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -3
Dockerfile CHANGED
@@ -1,12 +1,26 @@
1
  FROM python:3.9
2
 
3
- COPY requirements.txt .
4
- RUN pip install -r requirements.txt
5
-
 
 
 
 
 
 
6
 
 
7
  COPY . /app
8
  WORKDIR /app
9
 
 
 
 
 
 
 
 
10
  EXPOSE 8501
11
 
12
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
 
1
  FROM python:3.9
2
 
3
+ # Install system dependencies required by Prophet
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ libpython3-dev \
7
+ python3-pip \
8
+ python3-setuptools \
9
+ python3-wheel \
10
+ python3-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Copy all files at once to minimize layers
14
  COPY . /app
15
  WORKDIR /app
16
 
17
+ # Install Python dependencies
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Verify files are in place
21
+ RUN ls -la /app && \
22
+ ls -la /app/Finance\ Data/
23
+
24
  EXPOSE 8501
25
 
26
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]