File size: 603 Bytes
814c46e 0e876f8 814c46e f23a51a 814c46e 0e876f8 814c46e 0e876f8 814c46e 0e876f8 814c46e 1470d33 |
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 |
# Use an official Python base image
FROM python:3.8
# Set the working directory in the container
WORKDIR /app
# Set MPLCONFIGDIR environment variable to a writable directory
ENV MPLCONFIGDIR=/tmp/matplotlib_config
# Copy the requirements file into the container
COPY requirements.txt /app/
# Install dependencies
RUN pip install -r requirements.txt
# Install ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
# Copy the Streamlit app script into the container
COPY main.py /app/
# Expose the port Streamlit runs on
EXPOSE 8501
# Command to run the Streamlit app
CMD ["python", "main.py"]
|