of_LLms / Dockerfile
ka1kuk's picture
Update Dockerfile
60d02b4 verified
raw
history blame
No virus
558 Bytes
# Use an official Python base image
FROM python:3.8
# Set the working directory in the container
WORKDIR /app
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# 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"]