mgbam commited on
Commit
8482a9d
·
verified ·
1 Parent(s): daa4b98

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -5,15 +5,18 @@ WORKDIR /code
5
  # Install Redis
6
  RUN apt-get update && apt-get install -y redis && rm -rf /var/lib/apt/lists/*
7
 
8
- # Copy & install Python dependencies
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- # Copy application files
13
  COPY . .
14
 
15
- # Ensure the startup script is executable
16
  RUN chmod +x start.sh
17
 
18
- # Launch everything via start.sh
 
 
 
19
  ENTRYPOINT ["./start.sh"]
 
5
  # Install Redis
6
  RUN apt-get update && apt-get install -y redis && rm -rf /var/lib/apt/lists/*
7
 
8
+ # Install Python deps
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Copy source
13
  COPY . .
14
 
15
+ # Make start.sh executable
16
  RUN chmod +x start.sh
17
 
18
+ # Expose both ports (7860 for Streamlit, 7861 for FastAPI)
19
+ EXPOSE 7860 7861
20
+
21
+ # Run startup script
22
  ENTRYPOINT ["./start.sh"]