FROM python:3.10 WORKDIR /app COPY ./requirements.txt /app/requirements.txt RUN pip install --no-cache-dir --upgrade -r requirements.txt RUN wget https://huggingface.co/TheBloke/Tess-10.7B-v1.5b-GGUF/resolve/main/tess-10.7b-v1.5b.Q6_K.gguf -O model.gguf RUN useradd -m -u 1000 user USER user COPY --chown=user . . CMD ["python", "app.py"]