File size: 543 Bytes
1a3780c
 
6ccf7f2
1a3780c
6ccf7f2
 
1a3780c
 
 
 
 
 
 
 
 
6ccf7f2
1a3780c
6ccf7f2
 
1a3780c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use Python 3.11 as the base image
FROM python:3.11-slim

# Set the working directory inside the container
WORKDIR /app

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

# Install dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

# Set PYTHONPATH so FastAPI can find the 'backend' module
ENV PYTHONPATH=/app

# Expose the port that Streamlit runs on
EXPOSE 7860

# Run Streamlit when the container starts
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]