Skip to content

Commit d7c1802

Browse files
committed
fix: simplify further
1 parent 405caf3 commit d7c1802

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ WORKDIR C:/Program Files/Vector
1010

1111
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
1212

13-
RUN Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/vectordotdev/vector/releases/download/v$$env:VECTOR_VERSION/vector-$env:VECTOR_VERSION-x86_64-pc-windows-msvc.zip" -OutFile "vector.zip"; \
13+
RUN Write-Host "VECTOR_VERSION: $$env:VECTOR_VERSION"; \
14+
$url = "https://github.com/vectordotdev/vector/releases/download/v$$env:VECTOR_VERSION/vector-$$env:VECTOR_VERSION-x86_64-pc-windows-msvc.zip"; \
15+
Write-Host "Download URL: $url"; \
16+
Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile "vector.zip"; \
1417
Expand-Archive -Path "vector.zip" -DestinationPath "."; \
1518
Remove-Item "vector.zip"
1619

0 commit comments

Comments
 (0)