Amritpal Singh commited on
Commit
0dc60cd
·
1 Parent(s): 16cf0cf

Initial deploy

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -1
Dockerfile CHANGED
@@ -1,7 +1,26 @@
1
  FROM python:3.9-slim
 
 
2
  WORKDIR /app
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  COPY requirements.txt .
4
  RUN pip install --upgrade pip && pip install -r requirements.txt
 
 
5
  COPY . .
 
 
6
  EXPOSE 8501
7
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
  FROM python:3.9-slim
2
+
3
+ # Set working directory
4
  WORKDIR /app
5
+
6
+ # Install build tools and required system libraries
7
+ RUN apt-get update && \
8
+ apt-get install -y --no-install-recommends \
9
+ build-essential \
10
+ gcc \
11
+ g++ \
12
+ libffi-dev \
13
+ libpq-dev \
14
+ libssl-dev \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Copy and install Python dependencies
18
  COPY requirements.txt .
19
  RUN pip install --upgrade pip && pip install -r requirements.txt
20
+
21
+ # Copy app files
22
  COPY . .
23
+
24
+ # Streamlit-specific settings
25
  EXPOSE 8501
26
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]