File size: 484 Bytes
e120287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use official Python image
FROM python:3.10

# Set environment variable to fix protobuf error
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python

# Set working directory
WORKDIR /app

# Copy all files to the container
COPY . .

# Install protobuf first, then rest
RUN pip install --upgrade pip && \
    pip install protobuf==3.20.* && \
    pip install -r requirements.txt

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