File tree Expand file tree Collapse file tree
net10.0/webassembly/amd64
ltsc2022/helix/webassembly/amd64
ltsc2025/helix/webassembly/amd64 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ steps:
1616 # rather than appending a duplicate --build-arg.
1717 $options = "$(imageBuilderBuildArgs)"
1818 $options = $options -replace '--build-arg PIP_INDEX_URL=\S+', "--build-arg PIP_INDEX_URL=$env:PIP_INDEX_URL"
19- # Dockerfiles default NPM_REGISTRY to the Microsoft public npm proxy (for public/local
20- # builds). On internal builds, point npm at the authenticated dotnet-public-npm feed and
21- # provide the token so the auth key derived from the URL resolves. Keeping the internal
22- # feed URL here means it lives in exactly one place instead of every Dockerfile.
23- $options += " --build-arg NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/"
19+ # The npm registry (public dotnet-public-npm feed) is baked into the Dockerfiles as the
20+ # NPM_REGISTRY default and is read anonymously, so no override is needed here. Internal
21+ # builds additionally pass a token so they can ingest new package versions; the token is
22+ # optional and unused on anonymous reads.
2423 $options += " --build-arg NPM_TOKEN=$(System.AccessToken)"
2524 echo "##vso[task.setvariable variable=imageBuilderBuildArgs]$options"
2625 displayName : Set PIP and NPM Build Args
Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ RUN tdnf update -y \
1212 libxml2 \
1313 unzip
1414
15- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
16- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
17- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
15+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
16+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
17+ # only needed by internal builds that ingest new package versions into the feed.
18+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
1819ARG NPM_TOKEN
1920
2021RUN npm config set registry "$NPM_REGISTRY" && \
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ RUN tdnf update -y \
1313 # dependency for npm package modification
1414 jq
1515
16- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
17- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
18- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
16+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
17+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
18+ # only needed by internal builds that ingest new package versions into the feed.
19+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
1920ARG NPM_TOKEN
2021
2122RUN npm config set registry "$NPM_REGISTRY" && \
Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ RUN tdnf update -y \
1212 libxml2 \
1313 unzip
1414
15- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
16- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
17- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
15+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
16+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
17+ # only needed by internal builds that ingest new package versions into the feed.
18+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
1819ARG NPM_TOKEN
1920
2021RUN npm config set registry "$NPM_REGISTRY" && \
Original file line number Diff line number Diff line change @@ -17,9 +17,10 @@ RUN tdnf update -y && \
1717 util-linux \
1818 && tdnf clean all
1919
20- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
21- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
22- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
20+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
21+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
22+ # only needed by internal builds that ingest new package versions into the feed.
23+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
2324ARG NPM_TOKEN
2425
2526RUN npm config set registry "$NPM_REGISTRY" && \
Original file line number Diff line number Diff line change @@ -96,13 +96,14 @@ RUN ARCH=$(dpkg --print-architecture) \
9696 && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \
9797 && rm -f /tmp/powershell.tar.gz
9898
99- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
100- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
101- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
99+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
100+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
101+ # only needed by internal builds that ingest new package versions into the feed.
102+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
102103ARG NPM_TOKEN
103104
104105# Install Node 20 from NodeSource and use the patched npm ip module.
105- # npm registry comes from NPM_REGISTRY (default proxy above); NPM_TOKEN adds auth for the internal feed .
106+ # npm registry comes from NPM_REGISTRY (default feed above); NPM_TOKEN only adds ingestion auth for internal builds .
106107RUN cd /etc/apt/sources.list.d && \
107108 rm -f nodesource.list && \
108109 cd ~ && \
Original file line number Diff line number Diff line change @@ -35,13 +35,14 @@ RUN apt-get update \
3535 uuid-dev \
3636 && rm -rf /var/lib/apt/lists/*
3737
38- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
39- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
40- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
38+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
39+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
40+ # only needed by internal builds that ingest new package versions into the feed.
41+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
4142ARG NPM_TOKEN
4243
4344# Install Node 20 from NodeSource and use the patched npm ip module.
44- # npm registry comes from NPM_REGISTRY (default proxy above); NPM_TOKEN adds auth for the internal feed .
45+ # npm registry comes from NPM_REGISTRY (default feed above); NPM_TOKEN only adds ingestion auth for internal builds .
4546RUN cd /etc/apt/sources.list.d && \
4647 rm -f nodesource.list && \
4748 cd ~ && \
Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ RUN locale-gen en_US.UTF-8
4040COPY ./setup-node-23.x.sh /tmp
4141RUN /tmp/setup-node-23.x.sh && apt-get -y install nodejs
4242
43- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
44- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
45- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
43+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
44+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
45+ # only needed by internal builds that ingest new package versions into the feed.
46+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
4647ARG NPM_TOKEN
4748
4849RUN npm config set registry "$NPM_REGISTRY" && \
Original file line number Diff line number Diff line change @@ -95,13 +95,14 @@ RUN ARCH=$(dpkg --print-architecture) \
9595 && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \
9696 && rm -f /tmp/powershell.tar.gz
9797
98- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
99- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
100- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
98+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
99+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
100+ # only needed by internal builds that ingest new package versions into the feed.
101+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
101102ARG NPM_TOKEN
102103
103104# Install node 20 and use its bundled npm so we don't pull in distro npm dependencies unnecessarily.
104- # npm registry comes from NPM_REGISTRY (default proxy above); NPM_TOKEN adds auth for the internal feed .
105+ # npm registry comes from NPM_REGISTRY (default feed above); NPM_TOKEN only adds ingestion auth for internal builds .
105106RUN rm -f /etc/apt/sources.list.d/nodesource.list && \
106107 cd ~ && \
107108 curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh && \
Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ RUN chmod +x /tmp/setup-node-23.x.sh \
4545 && apt-get install -y nodejs \
4646 && rm -rf /var/lib/apt/lists/*
4747
48- # Registry npm installs pull from; defaults to the Microsoft public npm proxy.
49- # Internal builds override NPM_REGISTRY with the dotnet-public-npm Azure Artifacts feed and set NPM_TOKEN.
50- ARG NPM_REGISTRY=https://packagefeedproxy.microsoft.io/npm/
48+ # npm registry. Defaults to the public dotnet-public-npm Azure Artifacts feed, which is
49+ # readable anonymously (works for local/dev and public builds). NPM_TOKEN is optional and
50+ # only needed by internal builds that ingest new package versions into the feed.
51+ ARG NPM_REGISTRY=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
5152ARG NPM_TOKEN
5253
5354RUN npm config set registry "$NPM_REGISTRY" && \
You can’t perform that action at this time.
0 commit comments