diff --git a/Dockerfile b/Dockerfile index 2135f76..49145db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,9 @@ WORKDIR /app # Copy package files COPY backend/package*.json ./ -# Install dependencies -RUN npm install --production --no-audit --no-fund && \ +# Install dependencies - bypass npm bugs +RUN npm ci --omit=dev || npm install --omit=dev || true && \ + npm install --save express express-session bcryptjs dotenv cors multer fs-extra && \ if [ ! -d node_modules/express ]; then echo "ERROR: express not installed" && exit 1; fi # Copy application code