Skip to content

Commit 382c6fe

Browse files
committed
fix: simplify further
1 parent e81331a commit 382c6fe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ARG WINDOWS_VERSION
44

5-
FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION
5+
FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION as downloader
66

77
ARG VECTOR_VERSION
88

@@ -14,6 +14,10 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
1414

1515
RUN /windows/temp/install-vector.ps1 -VectorVersion $VECTOR_VERSION
1616

17+
FROM mcr.microsoft.com/windows/nanoserver:$WINDOWS_VERSION as runtime
18+
19+
COPY --from=downloader "C:/Program Files/Vector" "C:/Program Files/Vector"
20+
1721
RUN setx /M PATH "%PATH%;C:\Program Files\Vector\bin"
1822

1923
ENTRYPOINT ["vector.exe"]

0 commit comments

Comments
 (0)