Skip to content

Commit b6a535d

Browse files
authored
fix(backend): dependency issues (#3703)
* fix(backend): critical issue with ssl * fix(deps): old version of alpine * fix(deps): old version of alpine * fix(deps): npm packages * fix deps * fix axios deps * fix deps * fix deps * fix deps
1 parent 2cc4ca1 commit b6a535d

File tree

14 files changed

+212
-147
lines changed

14 files changed

+212
-147
lines changed

localenv/mock-account-servicing-entity/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.20 AS base
1+
FROM node:20-alpine3.21 AS base
22

33
WORKDIR /home/rafiki
44

@@ -29,7 +29,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
2929
--prod \
3030
| grep -v "cross-device link not permitted\|Falling back to copying packages from store"
3131

32-
FROM base AS builder
32+
FROM base AS builder
3333

3434
COPY package.json pnpm-workspace.yaml .npmrc tsconfig.json tsconfig.build.json ./
3535
COPY localenv/mock-account-servicing-entity ./localenv/mock-account-servicing-entity
@@ -42,7 +42,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
4242
--frozen-lockfile
4343
RUN pnpm --filter mock-account-servicing-entity build
4444

45-
FROM node:20-alpine3.20 AS runner
45+
FROM node:20-alpine3.21 AS runner
4646

4747
WORKDIR /home/rafiki
4848

localenv/mock-account-servicing-entity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@remix-run/serve": "^2.16.4",
1818
"@types/node": "^18.7.12",
1919
"@types/uuid": "^9.0.8",
20-
"axios": "^1.8.2",
20+
"axios": "^1.12.0",
2121
"class-variance-authority": "^0.7.1",
2222
"graphql": "^16.11.0",
2323
"json-canonicalize": "^1.0.6",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"path-to-regexp@>=0.1.7": "^0.1.12",
7575
"path-to-regexp@>=6.3.0": "^6.3.0",
7676
"next": "^15.2.3",
77-
"form-data": "^4.0.4"
77+
"form-data": "^4.0.4",
78+
"sha.js": ">=2.4.12"
7879
}
7980
}
8081
}

packages/auth/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.20
1+
FROM node:20-alpine3.21
22

33
RUN adduser -D rafiki
44
WORKDIR /home/rafiki

packages/auth/Dockerfile.prod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.20 AS base
1+
FROM node:20-alpine3.21 AS base
22

33
WORKDIR /home/rafiki
44

@@ -30,7 +30,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
3030
--prod \
3131
| grep -v "cross-device link not permitted\|Falling back to copying packages from store"
3232

33-
FROM base AS builder
33+
FROM base AS builder
3434

3535
COPY package.json pnpm-workspace.yaml .npmrc tsconfig.json tsconfig.build.json ./
3636
COPY packages/auth ./packages/auth
@@ -44,7 +44,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
4444
--frozen-lockfile
4545
RUN pnpm --filter auth build
4646

47-
FROM node:20-alpine3.20 AS runner
47+
FROM node:20-alpine3.21 AS runner
4848

4949
RUN adduser -D rafiki
5050

packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@koa/cors": "^5.0.0",
3636
"@koa/router": "^12.0.2",
3737
"ajv": "^8.12.0",
38-
"axios": "^1.8.2",
38+
"axios": "^1.12.0",
3939
"dotenv": "^16.4.7",
4040
"graphql": "^16.11.0",
4141
"ioredis": "^5.3.2",

packages/backend/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.20
1+
FROM node:20-alpine3.21
22

33
RUN adduser -D rafiki
44
WORKDIR /home/rafiki

packages/backend/Dockerfile.prod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.20 AS base
1+
FROM node:20-alpine3.21 AS base
22

33
WORKDIR /home/rafiki
44

@@ -30,7 +30,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
3030
--prod \
3131
| grep -v "cross-device link not permitted\|Falling back to copying packages from store"
3232

33-
FROM base AS builder
33+
FROM base AS builder
3434

3535
COPY package.json pnpm-workspace.yaml .npmrc tsconfig.json tsconfig.build.json ./
3636
COPY packages/backend ./packages/backend
@@ -44,7 +44,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
4444
--frozen-lockfile
4545
RUN pnpm --filter backend build
4646

47-
FROM node:20-alpine3.20 AS runner
47+
FROM node:20-alpine3.21 AS runner
4848

4949
# Since this is from a fresh image, we need to first create the Rafiki user
5050
RUN adduser -D rafiki

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@opentelemetry/sdk-node": "^0.52.1",
7575
"@opentelemetry/sdk-trace-node": "^1.25.1",
7676
"ajv": "^8.12.0",
77-
"axios": "1.8.2",
77+
"axios": "^1.12.0",
7878
"base64url": "^3.0.1",
7979
"dotenv": "^16.4.7",
8080
"extensible-error": "^1.0.2",

packages/frontend/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.20 AS base
1+
FROM node:20-alpine3.21 AS base
22

33
RUN adduser -D rafiki
44
WORKDIR /home/rafiki

0 commit comments

Comments
 (0)