diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index ae3feda..04bf5df 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -9,10 +9,11 @@ WORKDIR /app COPY package.json pnpm-lock.yaml ./ FROM base AS prod-deps -RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile +RUN pnpm install --prod --frozen-lockfile FROM base AS build -RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install --frozen-lockfile COPY . . RUN pnpm run build