From c73a804ee99057e3ffdd648c13ee28bd267232dc Mon Sep 17 00:00:00 2001 From: Conut-1 <1mim1@naver.com> Date: Mon, 20 May 2024 16:40:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20prisma=20migrate=EB=A5=BC=20entrypoint?= =?UTF-8?q?=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nestjs-BE/server/Dockerfile | 4 +--- nestjs-BE/server/entrypoint.sh | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 nestjs-BE/server/entrypoint.sh diff --git a/nestjs-BE/server/Dockerfile b/nestjs-BE/server/Dockerfile index 9ba8cdb5..97925344 100644 --- a/nestjs-BE/server/Dockerfile +++ b/nestjs-BE/server/Dockerfile @@ -10,8 +10,6 @@ RUN npm ci COPY ./ ./ -RUN npx prisma migrate dev - EXPOSE 3000 -CMD ["npm", "start"] +ENTRYPOINT ["./entrypoint.sh"] diff --git a/nestjs-BE/server/entrypoint.sh b/nestjs-BE/server/entrypoint.sh new file mode 100644 index 00000000..ef4bea16 --- /dev/null +++ b/nestjs-BE/server/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh +npx prisma migrate dev +npm start