We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a020fb commit 1008aa0Copy full SHA for 1008aa0
2 files changed
backend/.npmrc
@@ -0,0 +1,2 @@
1
+registry=https://registry.npmjs.org/
2
+legacy-peer-deps=true
backend/Dockerfile
@@ -1,21 +1,21 @@
# Use a smaller base image
FROM node:22.15.0-alpine
3
4
-
5
# Install OpenSSL
6
RUN apk add --no-cache openssl
7
8
# Set working directory
9
WORKDIR /app
10
11
-# Copy project files
12
-COPY . .
13
14
-# Generate Prisma client
15
-RUN npm config set registry https://registry.npmmirror.com/
+# Copy package files and npm config first for better caching
+COPY package*.json .npmrc ./
16
+# Install dependencies
17
RUN npm install --omit=dev
18
+# Copy rest of the project files
+COPY . .
+
19
# Expose container port 3000
20
EXPOSE 3000
21
0 commit comments