Created
February 5, 2021 13:25
-
-
Save pearswj/c4b1dd552d0d62cc182380d27beabc71 to your computer and use it in GitHub Desktop.
Windows docker image for filebeat based on nano server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# escape=` | |
# https://key4coding.com/2020/04/windows-nanoserver-issues-quick-fix/ | |
FROM mcr.microsoft.com/windows/servercore:ltsc2019 as Servercore | |
FROM mcr.microsoft.com/windows/nanoserver:1809 | |
COPY --from=Servercore /windows/system32/netapi32.dll /windows/system32/ | |
USER ContainerAdministrator | |
# download and unzip before building | |
# https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.9.2-windows-x86_64.zip | |
COPY filebeat-7.9.2-windows-x86_64/ /filebeat/ | |
WORKDIR /filebeat | |
ENTRYPOINT ["filebeat.exe"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment