File size: 513 Bytes
f67a585
 
 
 
 
 
35b0731
 
f67a585
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use an official Python runtime as a parent image
FROM python:3.11

# Set the working directory in the container
WORKDIR /app

# Ensure logs directory exists and set proper permissions
RUN mkdir -p /app/logs && chmod -R 777 /app/logs

# Copy the application files
COPY . .

# Install dependencies
RUN pip install -r requirements.txt

# Expose the ports for FastAPI (8000) and Streamlit (8501)
EXPOSE 8000

# Run FastAPI and Streamlit in parallel
CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port 8000"]