Compare commits
2 Commits
9087b7231c
...
778a3c77c4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
778a3c77c4 | ||
|
|
7f0dc4209b |
@@ -5,11 +5,9 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY backend/package*.json ./
|
COPY backend/package*.json ./
|
||||||
|
|
||||||
# Install dependencies with npm ci for reproducibility
|
# Install dependencies
|
||||||
RUN npm ci --only=production || npm install --production
|
RUN npm install --production --no-audit --no-fund && \
|
||||||
|
if [ ! -d node_modules/express ]; then echo "ERROR: express not installed" && exit 1; fi
|
||||||
# Verify critical dependencies are installed
|
|
||||||
RUN test -d node_modules/express || (echo "ERROR: express not installed" && exit 1)
|
|
||||||
|
|
||||||
# Copy application code
|
# Copy application code
|
||||||
COPY backend/src ./src
|
COPY backend/src ./src
|
||||||
|
|||||||
Reference in New Issue
Block a user