File size: 465 Bytes
29725ad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use official slim Python 3.12 image
FROM python:3.12-slim

# Set working directory inside the container
WORKDIR /app

# Copy all project files into the container
COPY . /app

# Ensure start.sh is executable
RUN chmod +x /app/start.sh

# Install required Python packages
RUN pip install --no-cache-dir -r requirements.txt

# Expose FastAPI on port 7860 and Streamlit on port 8000
EXPOSE 7860
EXPOSE 8000

# Launch both servers using start.sh
CMD ["/app/start.sh"]