diff --git a/.dockerignore b/.dockerignore index a972b91..3e578de 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,6 @@ Dockerfile .dockerignore +node_modules npm-debug.log README.md .next diff --git a/Dockerfile b/Dockerfile index 501a816..75c84a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ WORKDIR /app # Install dependencies based on the preferred package manager COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ RUN corepack enable -RUN yarn install --immutable +RUN yarn --frozen-lockfile # 2. Rebuild the source code only when needed