nodejs server packaged via Dockerfile
davidkarolyi
TRIALOP

2 years ago

I'm using private npm repos and I need a way to include my NPM_TOKEN in the build stage so dependencies can be installed in the docker image.
I tried adding it to env vard but those env vars are not injected to the build env. How am I supposed to solve this issue without exposing my token as plain text?

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

2 Replies

2 years ago

Railway unfortunately does not have support for private npm packages yet


2 years ago

If all you need to do is bring NPM_TOKEN into your build environment then please read this -

https://docs.railway.app/guides/dockerfiles#using-variables-at-build-time


Loading...