Skip to content
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

[Dockerfile] import-meta-env - Update target node version to 22 #1061

Open
2 tasks
meissadia opened this issue Nov 14, 2024 · 0 comments
Open
2 tasks

[Dockerfile] import-meta-env - Update target node version to 22 #1061

meissadia opened this issue Nov 14, 2024 · 0 comments
Assignees

Comments

@meissadia
Copy link
Collaborator

https://github.com/cfpb/sbl-frontend/blob/main/Dockerfile#L8-L10

RUN npx pkg ./node_modules/@import-meta-env/cli/bin/import-meta-env.js \
  -t node18-alpine-x64 \
  -o import-meta-env-alpine

The latest version of Node supported by pkg is v18
https://www.npmjs.com/package/pkg-fetch#binary-compatibility

The source repo for pkg is archived as of the start of 2024, so no further updates expected there.
https://github.com/vercel/pkg

The current target (node18) works fine despite upgrading the underlying node version to 22 but, to ensure future compatibility, we should explore alternatives.

Questions:

  • Is there an alternative to pkg we can use?
  • Is there a port of the pkg repo that supports newer Node versions?
@meissadia meissadia self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant