-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.alpine
26 lines (22 loc) · 1.18 KB
/
Dockerfile.alpine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM mcr.microsoft.com/powershell:alpine-3.13
ARG IMAGE_CREATE_DATE
LABEL org.opencontainers.image.authors="Scott MacGregor <[email protected]>" \
org.opencontainers.image.title="psfalcon-docker" \
org.opencontainers.image.description="Crowdstrike PSFalcon for Powershell" \
org.opencontainers.image.source="https://github.com/cs-shadowbq/psfalcon-docker" \
org.opencontainers.image.url="https://hub.docker.com/r/shadowbq/psfalcon" \
org.opencontainers.image.base.name="powershell:alpine-3.12" \
org.opencontainers.image.licenses="UNLICENSE" \
org.opencontainers.image.version="0.1.6" \
org.opencontainers.image.created=$IMAGE_CREATE_DATE \
com.github.cs-shadowbq.psfalcon="2.1.5"
RUN apk --update --no-cache upgrade
SHELL [ "pwsh", "-command" ]
RUN Set-PSRepository -Name PSGallery -InstallationPolicy Trusted; \
Install-Module Microsoft.PowerShell.SecretManagement, Microsoft.PowerShell.SecretStore; \
Register-SecretVault -Name CrowdStrikeSecretStore -ModuleName Microsoft.PowerShell.SecretStore; \
Install-Module PSFalcon -Scope CurrentUser -RequiredVersion 2.1.5 -Force; \
Update-Help -Force;
WORKDIR /data
ENTRYPOINT ["pwsh"]
CMD [ "-Help" ]