ollama-test / Dockerfile
mihirjadhav's picture
Update Dockerfile
0a8885b verified
raw
history blame contribute delete
553 Bytes
# Base image
FROM python:3.9
# Set the cache location
ENV TRANSFORMERS_CACHE /app/.cache
RUN mkdir -p /app/.cache
# Install essential compilers and build tools
RUN apt-get update && apt-get install -y build-essential g++ gcc gfortran
WORKDIR /app
# Install dependencies
COPY requirements.txt ./
COPY app.py ./
COPY htmlTemplates.py ./
RUN pip install -r requirements.txt
# Copy your code
COPY . ./
# Expose the port used by Streamlit
EXPOSE 7860
USER root
# Start the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port", "7860"]