frrf / Dockerfile
randomshit11's picture
Update Dockerfile
4fba2a2 verified
raw
history blame contribute delete
576 Bytes
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