Baba-Milind-LLM_w_RAG / Dockerfile
CrimsonElephant's picture
Final attempt: Enable unbuffered Python output in Dockerfile for log visibility
f478393
raw
history blame contribute delete
488 Bytes
FROM python:3.10
# Create a non-root user for security
RUN useradd -m -u 1000 user
# Set the working directory
WORKDIR /app
# *** ADD THIS LINE ***
ENV PYTHONUNBUFFERED=1
# Copy the requirements file and install dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy all other files
COPY --chown=user . /app
# Expose the port that Gradio runs on
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]