I'm running verdaccio locally (through docker) to publish private npm packages. I'm building one of my packages with Dockerfile which has:
RUN npm ci
in it. I'm actually building with docker-compose
. I have a .env
file to set these args:
- NPM_CONFIG_REGISTRY
- NPM_CONFIG_USERNAME
- NPM_CONFIG_EMAIL
- NPM_CONFIG_PASSWORD
It is successfully trying to get packages from my local registry but it can't connect.
So my question is - how can I run docker-compose build myservice
and have myservice
use the locally running instance of verdaccio
to pull packages from during the docker build?
EDIT: I'm running on a mac host.