Skip to content

Instantly share code, notes, and snippets.

@pearswj
Created February 5, 2021 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pearswj/c4b1dd552d0d62cc182380d27beabc71 to your computer and use it in GitHub Desktop.
Save pearswj/c4b1dd552d0d62cc182380d27beabc71 to your computer and use it in GitHub Desktop.
Windows docker image for filebeat based on nano server
# 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