-
Notifications
You must be signed in to change notification settings - Fork 82
Updated vulnerable packages #1573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
857ad18
Updated vulnerable packages and Updated all Dockerfiles to use Node.j…
DeepakNemad aaed3a4
Fix: Resolve Dockerfile vulnerabilities and cleanup
DeepakNemad 284d545
Fix: Resolve the Coderabit changes
DeepakNemad 9a636f7
Fix: Resolve Dockerfile vulnerabilities and cleanup
DeepakNemad 4e06601
Fix: Resolve the sonarqube changes
DeepakNemad 2c92b13
Fix: Resolve the sonarqube changes
DeepakNemad 24ad3df
Fix: Resolve the sonarqube changes
DeepakNemad d23d50f
Fix: Resolve the sonarqube changes
DeepakNemad fe80364
Fixed coderabit suggested changes
DeepakNemad b99fa33
Fixed coderabit suggested changes
DeepakNemad ea4df07
All 19 Dockerfiles have been updated consistently while maintaining t…
DeepakNemad 8092250
fixed agent proviosining issue
DeepakNemad bab86b9
Added stable version of openssl
DeepakNemad b0835f8
Added stable version of openssl
DeepakNemad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,36 @@ | ||
| # Stage 1: Build the application | ||
| FROM node:18-alpine as build | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
| RUN npm install -g pnpm --ignore-scripts \ | ||
| && apk update \ | ||
| && apk add openssh-client \ | ||
| && apk add aws-cli \ | ||
| && apk add docker \ | ||
| && apk add docker-compose | ||
|
|
||
| RUN npm install -g pnpm | ||
| # Set the working directory | ||
| FROM node:24-alpine3.21 AS build | ||
| RUN apk update && apk upgrade && apk add --no-cache \ | ||
| openssl=3.3.3-r0 \ | ||
| openssh-client \ | ||
| aws-cli \ | ||
| docker \ | ||
| docker-compose \ | ||
| && rm -rf /var/cache/apk/* | ||
| RUN npm install -g pnpm@9.15.3 --ignore-scripts | ||
| WORKDIR /app | ||
|
|
||
| # Copy package.json and package-lock.json | ||
| COPY package.json ./ | ||
| COPY pnpm-workspace.yaml ./ | ||
|
|
||
| COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
| ENV PUPPETEER_SKIP_DOWNLOAD=true | ||
|
|
||
| # Install dependencies while ignoring scripts (including Puppeteer's installation) | ||
| RUN pnpm i --ignore-scripts | ||
|
|
||
| # Copy the rest of the application code | ||
| RUN pnpm i --frozen-lockfile --ignore-scripts | ||
| COPY . . | ||
| # RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate | ||
| RUN cd libs/prisma-service && npx prisma generate | ||
|
|
||
| # Build the user service | ||
| RUN pnpm run build agent-service | ||
| RUN pnpm prune --prod | ||
|
|
||
| # Stage 2: Create the final image | ||
| FROM node:18-alpine | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
| RUN npm install -g pnpm --ignore-scripts \ | ||
| && apk update \ | ||
| && apk add openssh-client \ | ||
| && apk add aws-cli \ | ||
| && apk add docker \ | ||
| && apk add docker-compose | ||
|
|
||
| # RUN npm install -g pnpm | ||
| # Set the working directory | ||
| FROM node:24-alpine3.21 | ||
| RUN apk update && apk upgrade && apk add --no-cache \ | ||
| openssl=3.3.3-r0 \ | ||
| openssh-client \ | ||
| aws-cli \ | ||
| docker \ | ||
| docker-compose \ | ||
| && rm -rf /var/cache/apk/* \ | ||
| && addgroup -g 1001 -S nodejs \ | ||
| && adduser -S nextjs -u 1001 | ||
| WORKDIR /app | ||
|
|
||
| # Copy the compiled code from the build stage | ||
| COPY --from=build /app/dist/apps/agent-service/ ./dist/apps/agent-service/ | ||
|
|
||
| # Copy the libs folder from the build stage | ||
| COPY --from=build /app/libs/ ./libs/ | ||
| #COPY --from=build /app/package.json ./ | ||
| COPY --from=build /app/node_modules ./node_modules | ||
|
|
||
| # Set the command to run the microservice | ||
| CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/agent-service/main.js"] | ||
| COPY --from=build /app/node_modules ./node_modules | ||
| USER nextjs | ||
| CMD ["node", "dist/apps/agent-service/main.js"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,26 @@ | ||
| # Stage 1: Build the application | ||
| FROM node:18-alpine as build | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
| RUN npm install -g pnpm | ||
| # Set the working directory | ||
| FROM node:24-alpine3.21 AS build | ||
| RUN apk update && apk upgrade && apk add --no-cache openssl=3.3.3-r0 \ | ||
| && rm -rf /var/cache/apk/* | ||
| RUN npm install -g pnpm@9.15.3 --ignore-scripts | ||
| WORKDIR /app | ||
|
|
||
| # Copy package.json and package-lock.json | ||
| COPY package.json ./ | ||
| COPY pnpm-workspace.yaml ./ | ||
| # COPY package-lock.json ./ | ||
|
|
||
| COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
| ENV PUPPETEER_SKIP_DOWNLOAD=true | ||
|
|
||
| # Install dependencies while ignoring scripts (including Puppeteer's installation) | ||
| RUN pnpm i --ignore-scripts | ||
|
|
||
| # Copy the rest of the application code | ||
| RUN pnpm i --frozen-lockfile --ignore-scripts | ||
| COPY . . | ||
| # RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate | ||
| RUN cd libs/prisma-service && npx prisma generate | ||
|
|
||
| # Build the api-gateway service | ||
| RUN pnpm run build api-gateway | ||
| RUN pnpm prune --prod | ||
|
|
||
| # Stage 2: Create the final image | ||
| FROM node:18-alpine | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
|
|
||
| # Set the working directory | ||
| FROM node:24-alpine3.21 | ||
| RUN apk update && apk upgrade && apk add --no-cache openssl=3.3.3-r0 \ | ||
| && rm -rf /var/cache/apk/* \ | ||
| && addgroup -g 1001 -S nodejs \ | ||
| && adduser -S nextjs -u 1001 | ||
| WORKDIR /app | ||
|
|
||
| # Copy the compiled code from the build stage | ||
| COPY --from=build /app/dist/apps/api-gateway/ ./dist/apps/api-gateway/ | ||
|
|
||
| # Copy the libs folder from the build stage | ||
| COPY --from=build /app/libs/ ./libs/ | ||
| COPY --from=build /app/node_modules ./node_modules | ||
| # COPY --from=build /app/uploadedFiles ./uploadedFiles | ||
|
|
||
| # Set the command to run the microservice | ||
| CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/api-gateway/main.js"] | ||
| COPY --from=build /app/node_modules ./node_modules | ||
| USER nextjs | ||
| CMD ["node", "dist/apps/api-gateway/main.js"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,46 +1,26 @@ | ||
| # Stage 1: Build the application | ||
| FROM node:18-alpine AS build | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
| RUN npm install -g pnpm | ||
|
|
||
| # Set the working directory | ||
| FROM node:24-alpine3.21 AS build | ||
| RUN apk update && apk upgrade && apk add --no-cache openssl=3.3.3-r0 \ | ||
| && rm -rf /var/cache/apk/* | ||
| RUN npm install -g pnpm@9.15.3 --ignore-scripts | ||
| WORKDIR /app | ||
|
|
||
| # Copy package.json and package-lock.json | ||
| COPY package.json ./ | ||
| COPY pnpm-workspace.yaml ./ | ||
|
|
||
| COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
| ENV PUPPETEER_SKIP_DOWNLOAD=true | ||
|
|
||
| # Install dependencies while ignoring scripts (including Puppeteer's installation) | ||
| RUN pnpm i --ignore-scripts | ||
|
|
||
| # Copy the rest of the application code | ||
| RUN pnpm i --frozen-lockfile --ignore-scripts | ||
| COPY . . | ||
| # RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate | ||
| RUN cd libs/prisma-service && npx prisma generate | ||
|
|
||
| # Build the user service | ||
| RUN pnpm run build cloud-wallet | ||
| RUN pnpm prune --prod | ||
|
|
||
| # Stage 2: Create the final image | ||
| FROM node:18-alpine | ||
|
|
||
| RUN apk add --no-cache openssl | ||
|
|
||
| # Set the working directory | ||
| FROM node:24-alpine3.21 | ||
| RUN apk update && apk upgrade && apk add --no-cache openssl=3.3.3-r0 \ | ||
| && rm -rf /var/cache/apk/* \ | ||
| && addgroup -g 1001 -S nodejs \ | ||
| && adduser -S nextjs -u 1001 | ||
| WORKDIR /app | ||
| # RUN npm install -g pnpm | ||
|
|
||
| # Copy the compiled code from the build stage | ||
| COPY --from=build /app/dist/apps/cloud-wallet/ ./dist/apps/cloud-wallet/ | ||
|
|
||
| # Copy the libs folder from the build stage | ||
| COPY --from=build /app/libs/ ./libs/ | ||
| #COPY --from=build /app/package.json ./ | ||
| COPY --from=build /app/node_modules ./node_modules | ||
|
|
||
|
|
||
| # Set the command to run the microservice | ||
| CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/cloud-wallet/main.js"] | ||
| COPY --from=build /app/node_modules ./node_modules | ||
| USER nextjs | ||
| CMD ["node", "dist/apps/cloud-wallet/main.js"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,47 +1,26 @@ | ||
| # Stage 1: Build the application | ||
| FROM node:18-alpine as build | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
| RUN npm install -g pnpm | ||
| # Set the working directory | ||
| FROM node:24-alpine3.21 AS build | ||
| RUN apk update && apk upgrade && apk add --no-cache openssl=3.3.3-r0 \ | ||
| && rm -rf /var/cache/apk/* | ||
| RUN npm install -g pnpm@9.15.3 --ignore-scripts | ||
| WORKDIR /app | ||
|
|
||
| # Copy package.json and package-lock.json | ||
| COPY package.json ./ | ||
| COPY pnpm-workspace.yaml ./ | ||
| #COPY package-lock.json ./ | ||
|
|
||
| COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
| ENV PUPPETEER_SKIP_DOWNLOAD=true | ||
|
|
||
| # Install dependencies while ignoring scripts (including Puppeteer's installation) | ||
| RUN pnpm i --ignore-scripts | ||
|
|
||
| # Copy the rest of the application code | ||
| RUN pnpm i --frozen-lockfile --ignore-scripts | ||
| COPY . . | ||
| # RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate | ||
| RUN cd libs/prisma-service && npx prisma generate | ||
|
|
||
| # Build the connection service | ||
| RUN pnpm run build connection | ||
| RUN pnpm prune --prod | ||
|
|
||
| # Stage 2: Create the final image | ||
| FROM node:18-alpine | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
| # RUN npm install -g pnpm | ||
| # Set the working directory | ||
| FROM node:24-alpine3.21 | ||
| RUN apk update && apk upgrade && apk add --no-cache openssl=3.3.3-r0 \ | ||
| && rm -rf /var/cache/apk/* \ | ||
| && addgroup -g 1001 -S nodejs \ | ||
| && adduser -S nextjs -u 1001 | ||
| WORKDIR /app | ||
|
|
||
| # Copy the compiled code from the build stage | ||
| COPY --from=build /app/dist/apps/connection/ ./dist/apps/connection/ | ||
|
|
||
| # Copy the libs folder from the build stage | ||
| COPY --from=build /app/libs/ ./libs/ | ||
| #COPY --from=build /app/package.json ./ | ||
| COPY --from=build /app/node_modules ./node_modules | ||
|
|
||
| # Install production dependencies for the final image | ||
| #RUN npm i --only=production | ||
|
|
||
| # Set the command to run the microservice | ||
| CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/connection/main.js"] | ||
| COPY --from=build /app/node_modules ./node_modules | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| USER nextjs | ||
| CMD ["node", "dist/apps/connection/main.js"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,26 @@ | ||
| # Stage 1: Build the application | ||
| FROM node:18-alpine as build | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
| RUN npm install -g pnpm | ||
| # Set the working directory | ||
| FROM node:24-alpine3.21 AS build | ||
| RUN apk update && apk upgrade && apk add --no-cache openssl=3.3.3-r0 \ | ||
| && rm -rf /var/cache/apk/* | ||
| RUN npm install -g pnpm@9.15.3 --ignore-scripts | ||
| WORKDIR /app | ||
|
|
||
| # Copy package.json and package-lock.json | ||
| COPY package.json ./ | ||
| COPY pnpm-workspace.yaml ./ | ||
| #COPY package-lock.json ./ | ||
|
|
||
| COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
| ENV PUPPETEER_SKIP_DOWNLOAD=true | ||
|
|
||
| # Install dependencies while ignoring scripts (including Puppeteer's installation) | ||
| RUN pnpm i --ignore-scripts | ||
|
|
||
| # Copy the rest of the application code | ||
| RUN pnpm i --frozen-lockfile --ignore-scripts | ||
| COPY . . | ||
| # RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate | ||
| RUN cd libs/prisma-service && npx prisma generate | ||
|
|
||
| # Build the connection service | ||
| RUN pnpm run build ecosystem | ||
| RUN pnpm prune --prod | ||
|
|
||
| # Stage 2: Create the final image | ||
| FROM node:18-alpine | ||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl | ||
| # RUN npm install -g pnpm | ||
| # Set the working directory | ||
| FROM node:24-alpine3.21 | ||
| RUN apk update && apk upgrade && apk add --no-cache openssl=3.3.3-r0 \ | ||
| && rm -rf /var/cache/apk/* \ | ||
| && addgroup -g 1001 -S nodejs \ | ||
| && adduser -S nextjs -u 1001 | ||
| WORKDIR /app | ||
|
|
||
| # Copy the compiled code from the build stage | ||
| COPY --from=build /app/dist/apps/ecosystem/ ./dist/apps/ecosystem/ | ||
|
|
||
| # Copy the libs folder from the build stage | ||
| COPY --from=build /app/libs/ ./libs/ | ||
| #COPY --from=build /app/package.json ./ | ||
| COPY --from=build /app/node_modules ./node_modules | ||
|
|
||
| # Set the command to run the microservice | ||
| CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/ecosystem/main.js"] | ||
| COPY --from=build /app/node_modules ./node_modules | ||
| USER nextjs | ||
| CMD ["node", "dist/apps/ecosystem/main.js"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.