varshasharma01 commited on
Commit
29ef95e
·
verified ·
1 Parent(s): f19004d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Copy and install dependencies
13
- ARG CACHE_BUST=2
14
  COPY requirements.txt ./
15
 
16
  RUN pip install --upgrade pip
@@ -20,10 +20,8 @@ RUN pip install --no-cache-dir -r requirements.txt
20
  COPY src/ ./src/
21
 
22
  # Expose both ports
23
- EXPOSE 8000
24
  EXPOSE 7860
25
 
26
  # Start both FastAPI and Streamlit together
27
- CMD uvicorn src.main:app --host 0.0.0.0 --port 8000 & \
28
- sleep 3 && \
29
- streamlit run src/main_app.py --server.port 7860 --server.address 0.0.0.0
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Copy and install dependencies
13
+ ARG CACHE_BUST=3
14
  COPY requirements.txt ./
15
 
16
  RUN pip install --upgrade pip
 
20
  COPY src/ ./src/
21
 
22
  # Expose both ports
23
+ # EXPOSE 8000
24
  EXPOSE 7860
25
 
26
  # Start both FastAPI and Streamlit together
27
+ CMD streamlit run src/main_app.py --server.port 7860 --server.address 0.0.0.0