diff --git a/.dockerignore b/.dockerignore index 322ddd0..0bdd2ac 100644 --- a/.dockerignore +++ b/.dockerignore @@ -96,4 +96,3 @@ Makefile # Package locks (can be regenerated) package-lock.json yarn.lock -pnpm-lock.yaml diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 7083917..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -onlyBuiltDependencies[]=esbuild diff --git a/Dockerfile b/Dockerfile index bb29163..f215132 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /app RUN corepack enable && corepack prepare pnpm@latest --activate # Copy package and configuration -COPY package.json pnpm-lock.yaml tsconfig.json ./ +COPY package.json pnpm-lock.yaml pnpm-workspace.yaml tsconfig.json ./ # Copy source code COPY src ./src @@ -25,7 +25,7 @@ RUN corepack enable && corepack prepare pnpm@latest --activate COPY --from=builder /app/build ./build # Copy package.json and lockfile for production install -COPY package.json pnpm-lock.yaml ./ +COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ # Install only production dependencies RUN pnpm install --prod --frozen-lockfile --ignore-scripts diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..5ed0b5a --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +allowBuilds: + esbuild: true