From 0a16e9caf3f2ed8e323c9ba8e15304e66543a4aa Mon Sep 17 00:00:00 2001 From: Robert J Spencer Date: Fri, 15 Nov 2024 11:49:44 +0800 Subject: [PATCH] Changes to Dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e092a6c..9d4d13f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,16 +9,16 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* && \ apt-get clean && \ rm -rf /var/cache/apt/* && \ - pip install --upgrade pip && \ - pip install --upgrade uv + pip install --no-cache-dir --no-warn-script-location --root-user-action=ignore \ + --upgrade pip uv -# Copy dependency files -COPY pyproject.toml ./ +# Copy all project files needed for installation +COPY pyproject.toml diun2homer.py ./ # Create virtual environment and install dependencies RUN python -m venv .venv && \ . .venv/bin/activate && \ - uv pip install -e . + uv pip install . # Final stage FROM python:3.11-slim