I have the following code:
const src = client.host().directory(project_dir).withoutDirectory('.git').withoutDirectory('./node_modules');
src.dockerBuild(dockerBuildOpts)
.withEnvVariable("USER",nuget_user)
.withEnvVariable("PAT",nuget_password)
.withRegistryAuth(registry_url, azure_user, secret)
.publish(registry_url + registry_loc + ':' + docker_image);
However, the USER and PAT variables, don't seem to be available with the Docker file?
Any ideas?