Skip to content

Commit 405caf3

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

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# This was largely based on; https://github.com/djboris9/vector-windows/blob/main/Dockerfile
22

33
ARG WINDOWS_VERSION
4-
ARG VECTOR_VERSION
54

65
FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION
76

7+
ARG VECTOR_VERSION
8+
89
WORKDIR C:/Program Files/Vector
910

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

12-
RUN Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/vectordotdev/vector/releases/download/v${VECTOR_VERSION}/vector-${VECTOR_VERSION}-x86_64-pc-windows-msvc.zip" -OutFile "vector.zip"; \
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"; \
1314
Expand-Archive -Path "vector.zip" -DestinationPath "."; \
1415
Remove-Item "vector.zip"
1516

0 commit comments

Comments
 (0)