File tree Expand file tree Collapse file tree 3 files changed +8
-3771
lines changed Expand file tree Collapse file tree 3 files changed +8
-3771
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,19 @@ COPY package*.json ./
88COPY prisma ./prisma/
99
1010# Install ALL dependencies (including dev dependencies)
11- RUN npm install
11+ RUN npm ci
1212
1313# Explicitly generate the Prisma client to create all the necessary types
1414RUN npx prisma generate
1515
16- # Copy the rest of your source code
16+ # Copy the rest of your source code (FIXED LINE)
17+ # This copies everything from the build context (your local directory)
18+ # into the container's working directory (/usr/src/app)
1719COPY . .
1820
21+ # CRITICAL FIX: Increase Node.js heap memory for memory-intensive build tools
22+ ENV NODE_OPTIONS="--max-old-space-size=4096"
23+
1924# Build the TypeScript project
2025RUN npm run build
2126
@@ -37,4 +42,4 @@ COPY --from=builder /usr/src/app/prisma ./prisma
3742EXPOSE 3000
3843
3944# Start the server
40- CMD [ "node" , "dist/server.js" ]
45+ CMD [ "node" , "dist/server.js" ]
You can’t perform that action at this time.
0 commit comments