Skip to content

Commit a6a6692

Browse files
committed
add alpine 3.17
1 parent 66b1ed9 commit a6a6692

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docker/alpine3.17/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM mcr.microsoft.com/powershell:7.3-alpine-3.17 as base
2+
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
3+
RUN Set-PSRepository -Name PSGallery -InstallationPolicy Trusted; \
4+
Install-Module Configuration -RequiredVersion 1.6.0 -Repository PSGallery -Scope AllUsers -Verbose; \
5+
Install-Module PSSlack -RequiredVersion 1.0.6 -Repository PSGallery -Scope AllUsers -Verbose;
6+
7+
FROM base as src
8+
ARG version
9+
LABEL maintainer="devblackops"
10+
LABEL description="PoshBot container for Alpine 3.17"
11+
LABEL vendor="poshbotio"
12+
COPY ["/out/PoshBot/$version", "/opt/microsoft/powershell/7/Modules/PoshBot/"]
13+
COPY ["/docker/docker_entrypoint.ps1", "/poshbot/docker_entrypoint.ps1"]
14+
WORKDIR /poshbot/
15+
VOLUME ["/poshbot_data"]
16+
VOLUME ["/root/.local/share/powershell/Modules"]
17+
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
18+
CMD ["pwsh", "docker_entrypoint.ps1"]

0 commit comments

Comments
 (0)