RAG-Application / Dockerfile
Itanutiwari527's picture
Update Dockerfile
2cece78 verified
raw
history blame contribute delete
573 Bytes
# Use an official Python base image
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install dependencies
COPY requirements.txt /app/
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy app files
COPY . /app/
# Streamlit config (optional)
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ENABLECORS=false
ENV STREAMLIT_SERVER_HEADLESS=true
# Expose the port used by the streamlit app
EXPOSE 7860
# Run the application
CMD ["streamlit", "run", "app.py"]