diff --git a/client/.dockerignore b/client/.dockerignore new file mode 100644 index 0000000..07e6e47 --- /dev/null +++ b/client/.dockerignore @@ -0,0 +1 @@ +/node_modules diff --git a/client/Dockerfile b/client/Dockerfile index 9b7de62..600bcbd 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -1,4 +1,4 @@ -FROM node:26.7-trixie-slim +FROM node:26.7.0-alpine3.24 ARG BB2-APP_LAUNCH @@ -11,8 +11,8 @@ WORKDIR /client COPY . . -RUN apt-get update && \ - apt-get install -y libgnutls30 libcap2 libssh2-1 +RUN apk update && \ + apk add --no-cache gnutls libcap libssh2 RUN npm install -g yarn diff --git a/client/package.json b/client/package.json index e51d5b4..3238eba 100644 --- a/client/package.json +++ b/client/package.json @@ -62,11 +62,12 @@ "eslint-plugin-react": "^7.37.5", "jsdom": "^25.0.1", "react-error-overlay": "6.0.9", - "vite": "^6.0.9", + "vite": "^6.4.3", "vite-plugin-eslint": "^1.8.1", "vitest": "^3.1.2" }, "resolutions": { - "@types/react": "^17.0.2" + "@types/react": "^17.0.2", + "@types/node": "^22.0.0" } } diff --git a/server/.dockerignore b/server/.dockerignore new file mode 100644 index 0000000..f7664ba --- /dev/null +++ b/server/.dockerignore @@ -0,0 +1,2 @@ +/node_modules +/node-sdk/node_modules diff --git a/server/Dockerfile b/server/Dockerfile index 29bfee1..3e44104 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,4 +1,4 @@ -FROM node:26.7-trixie-slim +FROM node:26.7.0-alpine3.24 LABEL version="1.1" LABEL description="Demo of a Medicare claims data sample app" @@ -7,8 +7,8 @@ WORKDIR /server COPY . . -RUN apt-get update && \ - apt-get install -y libgnutls30 libcap2 libssh2-1 +RUN apk update && \ + apk add --no-cache gnutls libcap libssh2 RUN npm install -g yarn diff --git a/server/index.ts b/server/index.ts index edb9c8b..91cb220 100644 --- a/server/index.ts +++ b/server/index.ts @@ -102,7 +102,7 @@ app.get("/api/bluebutton/callback", (req: Request, res: Response) => { // data flow: call the $generate-digital-insurance-card operation to get the // beneficiary's CARIN Digital Insurance Card (C4DIC) FHIR bundle. // This operation is only available on BB2 v3. - const insuranceCardResults = await bb.getInsuranceCardData(authToken); + const insuranceCardResults = await (bb as any).getInsuranceCardData(authToken); authToken = insuranceCardResults.token; // in case authToken got refreshed loggedInUser.authToken = authToken; diff --git a/server/package.json b/server/package.json index 3c83324..11b446f 100644 --- a/server/package.json +++ b/server/package.json @@ -45,7 +45,7 @@ ], "dependencies": { "@types/express": "^4.17.14", - "cms-bluebutton-sdk": "^1.0.4", + "cms-bluebutton-sdk": "^1.0.12", "express": "^4.18.2", "ts-node": "^10.9.1", "typescript": "^4.9.3"