RAGassignment / Dockerfile
u-r-a-bot's picture
Update Dockerfile
3391975 verified
Raw History Blame Contribute Delete
525 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy only requirements first (better for caching)
COPY requirements_file.txt ./
RUN pip3 install -r requirements_file.txt
# Copy all your project files into the container
COPY . .
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]