From ac8c12095fe059bded85d8f649dddb2119d18860 Mon Sep 17 00:00:00 2001 From: Honghyeonji Date: Thu, 14 Nov 2024 14:53:54 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=80=20chore:=20docker=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20github=20action=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/boolock-dev-cicd.yml | 3 +-- apps/server/Dockerfile | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/boolock-dev-cicd.yml b/.github/workflows/boolock-dev-cicd.yml index b2b844b0..a680e673 100644 --- a/.github/workflows/boolock-dev-cicd.yml +++ b/.github/workflows/boolock-dev-cicd.yml @@ -89,8 +89,7 @@ jobs: echo "MONGO_URI=\"${{ secrets.MONGO_URI }}\"" > apps/server/.env echo "IS_LOCAL=false" >> apps/server/.env - sudo docker compose build base sudo docker compose pull sudo docker compose down - sudo docker compose up -d + sudo docker compose up -d --build sudo docker image prune -f diff --git a/apps/server/Dockerfile b/apps/server/Dockerfile index 002fcfae..cc4a4357 100644 --- a/apps/server/Dockerfile +++ b/apps/server/Dockerfile @@ -6,6 +6,7 @@ COPY ./apps/server . COPY --from=base-image /app/packages /app/packages RUN pnpm install --offline --frozen-lockfile +RUN pnpm swagger-auto RUN pnpm run build CMD ["pnpm", "run", "start"]