From a12a3de291dd4c1dc4e4e105602a7aa6833e09ed Mon Sep 17 00:00:00 2001 From: kite_U Date: Fri, 29 Aug 2025 00:05:57 +0900 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20Python=20pip=20upgrade=20=EB=B9=84?= =?UTF-8?q?=ED=99=9C=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a8e773f..8c36fb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,8 @@ FROM nvidia/cuda:12.6.0-runtime-ubuntu24.04 WORKDIR /app RUN apt-get update && \ - apt-get install -y python3 python3-pip git && \ + apt-get install -y python3 python3-venv python3-pip git && \ ln -s /usr/bin/python3 /usr/bin/python && \ - pip install --upgrade pip && \ apt-get clean && rm -rf /var/lib/apt/lists/* COPY . . From 5fc065479e6afbf0bc600b495bb77aefc7a8cfa7 Mon Sep 17 00:00:00 2001 From: kite_U Date: Fri, 29 Aug 2025 00:11:59 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20Python=20=EA=B0=80=EC=83=81=ED=99=98?= =?UTF-8?q?=EA=B2=BD=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c36fb2..67a835e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,18 @@ FROM nvidia/cuda:12.6.0-runtime-ubuntu24.04 WORKDIR /app RUN apt-get update && \ - apt-get install -y python3 python3-venv python3-pip git && \ - ln -s /usr/bin/python3 /usr/bin/python && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get install -y --no-install-recommends \ + python3 python3-pip python3-venv git ca-certificates && \ + rm -rf /var/lib/apt/lists/* + +ENV VENV_PATH=/opt/venv +RUN python3 -m venv "$VENV_PATH" && \ + "$VENV_PATH/bin/python" -m pip install --upgrade pip COPY . . +RUN "$VENV_PATH/bin/pip" install --no-cache-dir -r app/requirements.txt -RUN pip install --no-cache-dir -r app/requirements.txt +ENV PATH="$VENV_PATH/bin:$PATH" EXPOSE 8000 From cf69ba2d9292783fd323db6f6a26ee77736cd988 Mon Sep 17 00:00:00 2001 From: kite_U Date: Fri, 29 Aug 2025 00:17:16 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=EC=86=8D=EB=8F=84=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0=EC=9D=84=20=EC=9C=84=ED=95=9C=20=EC=BA=90=EC=8B=B1=20?= =?UTF-8?q?=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-auto-review.yml | 2 +- .github/workflows/workflow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-auto-review.yml b/.github/workflows/pr-auto-review.yml index 23d9ba2..1f900bf 100644 --- a/.github/workflows/pr-auto-review.yml +++ b/.github/workflows/pr-auto-review.yml @@ -27,7 +27,7 @@ jobs: - name: Install Python Packages run: | python -m pip install --upgrade pip - pip install google-generativeai PyGithub + pip install --no-cache-dir google-generativeai PyGithub - name: Get Git Diff id: git_diff diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 3ee7fae..09809c7 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -26,7 +26,7 @@ jobs: - name: Build, tag, and push image to Amazon ECR run: | - docker build -t dearbelly-cv . + docker build --no-cache -t dearbelly-cv . docker tag dearbelly-cv:latest ${{ secrets.ECR_URI }}/dearbelly-cv docker push ${{ secrets.ECR_URI }}/dearbelly-cv:latest