Update Dockerfile
Browse files1234567810 unmodified lines192021222324252627# Use Python 3.10 as base imageFROM python:3.10-slim# Set working directoryWORKDIR /app# Install system dependencies and uvRUN apt-get update && apt-get install -y \10 unmodified lines# Install Python dependencies using uvRUN . ~/.bashrc && uv pip install -r pyproject.toml --system# Copy the rest of the applicationCOPY . .# Create directories for uploads and embeddings if they don't existRUN mkdir -p uploads embeddings123456789101112131415161710 unmodified lines2829303132333435# Use Python 3.10 as base imageFROM python:3.10-slim# Set up a new user named "user" with user ID 1000RUN useradd -m -u 1000 user# Switch to the "user" userUSER user# Set home to the user's home directoryENV HOME=/home/user \PATH=/home/user/.local/bin:$PATH# Set the working directory to the user's home directoryWORKDIR $HOME/app# Install system dependencies and uvRUN apt-get update && apt-get install -y \10 unmodified lines# Install Python dependencies using uvRUN . ~/.bashrc && uv pip install -r pyproject.toml --system# Copy the current directory contents into the container at $HOME/app setting the owner to the userCOPY --chown=user . $HOME/app# Create directories for uploads and embeddings if they don't existRUN mkdir -p uploads embeddings
Dockerfile+13-5