File size: 576 Bytes
b347a47
4fba2a2
 
b347a47
4fba2a2
 
b347a47
4fba2a2
 
b347a47
4fba2a2
 
 
 
 
 
b347a47
4fba2a2
 
b347a47
4fba2a2
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.8

# Expose port 8501
EXPOSE 8501

# Set working directory
WORKDIR /app

# Copy requirements file
COPY requirements.txt ./requirements.txt

# Install system dependencies
RUN apt-get update && \
    apt-get install -y ffmpeg libsm6 libxext6

# Install Python dependencies
RUN pip3 install -r requirements.txt

# Copy the application code
COPY . .

# Set the PORT environment variable
ENV PORT=8501

# Set the MPLCONFIGDIR environment variable
ENV MPLCONFIGDIR=/tmp/matplotlib-cache

# Command to run the Streamlit app
CMD streamlit run --server.port $PORT app.py