testshiny / Dockerfile
pgleeson's picture
More testing
67e0869
raw
history blame contribute delete
661 Bytes
FROM ubuntu:22.04
USER root
RUN apt-get update
RUN apt-get install -y python3-pip netcat curl
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
# Install ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
EXPOSE 7860
# Copy the ollama_setup.sh script
COPY ollama_setup.sh /usr/local/bin/ollama_setup.sh
# Set permissions for the ollama_setup.sh script
RUN chmod +x /usr/local/bin/ollama_setup.sh
# Use the ollama_setup.sh
#RUN /usr/local/bin/ollama_setup.sh
RUN echo "ollama set up"
CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]