Skip to content

Commit a74a0f9

Browse files
committed
fix: dockerfile
1 parent 4438d51 commit a74a0f9

File tree

3 files changed

+8
-3771
lines changed

3 files changed

+8
-3771
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ COPY package*.json ./
88
COPY 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
1414
RUN 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)
1719
COPY . .
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
2025
RUN npm run build
2126

@@ -37,4 +42,4 @@ COPY --from=builder /usr/src/app/prisma ./prisma
3742
EXPOSE 3000
3843

3944
# Start the server
40-
CMD [ "node", "dist/server.js" ]
45+
CMD [ "node", "dist/server.js" ]

0 commit comments

Comments
 (0)