Skip to content

Commit 2ab0874

Browse files
committed
fix: platform
1 parent 1bdaa9e commit 2ab0874

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

Dockerfile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,15 @@
33
ARG WINDOWS_VERSION
44
ARG 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-
156
FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION
167

178
WORKDIR 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

2317
ENTRYPOINT ["vector.exe"]

0 commit comments

Comments
 (0)