diff --git a/Dockerfile.windows b/Dockerfile.windows index 530eaae..a06c9bc 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -9,7 +9,7 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2022 AS builder SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] # PATH isn't actually set in the Docker image, so we have to set it from within the container -RUN $newPath = ('C:\nodejs;{0}\Yarn\bin;{1}' -f $env:LOCALAPPDATA, $env:PATH); \ +RUN $newPath = ('C:\nodejs;{0}' -f $env:PATH); \ Write-Host ('Updating PATH: {0}' -f $newPath); \ [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine) # doing this first to share cache across versions more aggressively @@ -40,17 +40,6 @@ RUN $url = ('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VE \ Write-Host 'Complete.'; -ENV YARN_VERSION 1.22.17 - -# "It is recommended to install Yarn through the npm package manager" (https://classic.yarnpkg.com/en/docs/install) -RUN Write-Host 'Installing "yarn" ...'; \ - npm install --global ('yarn@{0}' -f $env:YARN_VERSION); \ - \ - Write-Host 'Verifying ("yarn --version") ...'; \ - yarn --version; \ - \ - Write-Host 'Complete.'; - ARG VERSION=main ENV VERSION=$VERSION COPY . /opt/app-root/src