-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubi8
34 lines (27 loc) · 1.36 KB
/
Dockerfile.ubi8
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
27
28
29
30
31
32
33
34
FROM registry.access.redhat.com/ubi8/ubi:8.4-209
ARG IMAGE_CREATE_DATE
LABEL org.opencontainers.image.authors="Scott MacGregor <[email protected]>"
LABEL org.opencontainers.image.title="psfalcon-docker"
LABEL org.opencontainers.image.description="Crowdstrike PSFalcon for Powershell"
LABEL org.opencontainers.image.source="https://github.com/cs-shadowbq/psfalcon-docker"
LABEL org.opencontainers.image.url="https://hub.docker.com/r/shadowbq/psfalcon"
LABEL org.opencontainers.image.base.name="ubi8/ubi"
LABEL org.opencontainers.image.licenses="UNLICENSE"
LABEL org.opencontainers.image.version="0.1.6"
LABEL org.opencontainers.image.created=$IMAGE_CREATE_DATE
LABEL com.github.cs-shadowbq.psfalcon="2.1.5"
RUN curl https://packages.microsoft.com/config/rhel/8/prod.repo| tee /etc/yum.repos.d/microsoft.repo
RUN yum update -y \
&& yum install -y util-linux-user \
&& yum install -y powershell \
&& yum clean all
RUN chsh -s /usr/bin/pwsh
SHELL [ "pwsh", "-command" ]
RUN Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
RUN Install-Module Microsoft.PowerShell.SecretManagement, Microsoft.PowerShell.SecretStore
RUN Register-SecretVault -Name CrowdStrikeSecretStore -ModuleName Microsoft.PowerShell.SecretStore
RUN Install-Module PSFalcon -Scope CurrentUser -RequiredVersion 2.1.5 -Force
RUN Update-Help -Force
WORKDIR /data
ENTRYPOINT ["pwsh"]
CMD [ "-Help" ]