From 782951a4aedf289339107e83af30a225092da29c Mon Sep 17 00:00:00 2001 From: JaeHyunAn <98042706+yyuneu@users.noreply.github.com> Date: Thu, 11 Jun 2026 13:53:07 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20DB=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EA=B2=BD=EB=9F=89=ED=99=94=20=EB=B0=8F=20=EB=B0=B0=ED=8F=AC=20?= =?UTF-8?q?=ED=9B=84=20docker=20prune=20=ED=95=84=ED=84=B0=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 2 +- infra/Dockerfile | 16 +++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cb5fad13..ee56468f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -92,6 +92,6 @@ jobs: docker compose pull docker compose up -d docker exec guideon-nginx nginx -s reload - docker image prune -af --filter "until=168h" + docker image prune -af echo "=== Deploy complete ===" docker compose ps diff --git a/infra/Dockerfile b/infra/Dockerfile index d5ebcf0e..b8f36499 100644 --- a/infra/Dockerfile +++ b/infra/Dockerfile @@ -1,18 +1,8 @@ FROM postgis/postgis:16-3.4 -RUN apt-get update && apt-get install -y \ - git \ - make \ - build-essential \ - postgresql-server-dev-16 \ - clang-13 \ - llvm-13 \ +# pgvector: 빌드 도구 없이 PGDG apt 패키지로 설치 (이미지 크기 ~2GB 절감) +RUN apt-get update \ + && apt-get install -y --no-install-recommends postgresql-16-pgvector \ && rm -rf /var/lib/apt/lists/* -RUN cd /tmp && \ - git clone --branch v0.7.0 https://github.com/pgvector/pgvector.git && \ - cd pgvector && \ - make && \ - make install - COPY init.sql /docker-entrypoint-initdb.d/20_init.sql \ No newline at end of file