fix: utiliser npm ci et ajouter vérification express dans Dockerfile
This commit is contained in:
@@ -5,8 +5,11 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY backend/package*.json ./
|
COPY backend/package*.json ./
|
||||||
|
|
||||||
# Install dependencies cleanly
|
# Install dependencies with npm ci for reproducibility
|
||||||
RUN npm install --production
|
RUN npm ci --only=production || npm install --production
|
||||||
|
|
||||||
|
# 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