File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33ARG WINDOWS_VERSION
44ARG VECTOR_VERSION
55
6- FROM alpine as downloader
7-
8- WORKDIR /vector
9-
10- RUN apk add --no-cache curl unzip && \
11- curl -L -o vector.zip https://github.com/vectordotdev/vector/releases/download/v$VECTOR_VERSION/vector-$VECTOR_VERSION-x86_64-pc-windows-msvc.zip && \
12- unzip vector.zip && \
13- rm vector.zip
14-
156FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION
167
178WORKDIR C:/Program Files/Vector
189
19- ENV PATH="C:\\ Program Files\\ Vector\\ bin;C:\\ Windows\\ System32;C:\\ Windows;C:\\ Windows\\ System32\\ WindowsPowerShell\\ v1.0"
10+ RUN powershell -Command \
11+ 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" ; \
12+ Expand-Archive -Path "vector.zip" -DestinationPath "." ; \
13+ Remove-Item "vector.zip"
2014
21- COPY --from=downloader [ "/vector/" , "C:/ Program Files/ Vector" ]
15+ ENV PATH= "C: \\ Program Files\\ Vector\\ bin;C: \\ Windows \\ System32;C: \\ Windows;C: \\ Windows \\ System32 \\ WindowsPowerShell \\ v1.0"
2216
2317ENTRYPOINT ["vector.exe" ]
You can’t perform that action at this time.
0 commit comments