parthib07 commited on
Commit
a2a74a8
·
verified ·
1 Parent(s): d6bc18a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -7,20 +7,22 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
7
 
8
  WORKDIR /app
9
 
10
- # System deps (kept minimal). git is not required.
11
  RUN apt-get update && apt-get install -y --no-install-recommends \
12
  build-essential \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # Install Python dependencies first (better layer caching)
16
- COPY ai_business_automation_agent/requirements.txt /app/requirements.txt
 
 
17
  RUN pip install --upgrade pip && pip install -r /app/requirements.txt
18
 
19
- # Copy application code
20
  COPY . /app
21
 
22
- # Hugging Face Spaces uses 7860
23
  EXPOSE 7860
24
 
25
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860", "--server.headless=true"]
26
-
 
7
 
8
  WORKDIR /app
9
 
10
+ # Install system dependencies
11
  RUN apt-get update && apt-get install -y --no-install-recommends \
12
  build-essential \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Copy requirements file
16
+ COPY requirements.txt /app/requirements.txt
17
+
18
+ # Install Python dependencies
19
  RUN pip install --upgrade pip && pip install -r /app/requirements.txt
20
 
21
+ # Copy entire project
22
  COPY . /app
23
 
24
+ # HuggingFace Spaces / Streamlit port
25
  EXPOSE 7860
26
 
27
+ # Run Streamlit
28
+ CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860", "--server.headless=true"]