You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to pass a specific node version as a build-arg to Nx container. For a lot of other uses I just get the node version from the volta section in my package.json with jq -r < package.json .volta.node to get the exact same version. I would like to have the exact same node version for the container tag in my Dockerfile.
I'm not sure if I'm doing something wrong but I can't seem to get an environment variable into build-args. I've tried putting "NODE_VERSION=${NODE_VERSION}" as a value in build-args and then running container with:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I want to pass a specific node version as a build-arg to Nx container. For a lot of other uses I just get the node version from the volta section in my
package.jsonwithjq -r < package.json .volta.nodeto get the exact same version. I would like to have the exact same node version for the container tag in my Dockerfile.I'm not sure if I'm doing something wrong but I can't seem to get an environment variable into build-args. I've tried putting
"NODE_VERSION=${NODE_VERSION}"as a value inbuild-argsand then running container with:This just sets the value of the
NODE_VERSIONarg to literally${NODE_VERSION}without any substitution.Any ideas?
All reactions