-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 873 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 873 Bytes
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
FROM mcr.microsoft.com/powershell:ubuntu-22.04
MAINTAINER justin@jpaul.me
ENV ZERTOPSVERSION=1.0.953
RUN apt-get update; apt-get upgrade -y; apt-get install nano curl wget tini -y
COPY ./entrypoint.sh /
WORKDIR /
RUN pwsh -Command Install-Module -Name Zerto.Zvm.Commandlets -RequiredVersion $ZERTOPSVERSION -Force
RUN pwsh -Command Install-Module -Name ZertoApiWrapper -RequiredVersion 1.5.3 -Force
RUN pwsh -Command Install-Module -Name VMware.PowerCLI -RequiredVersion 12.7.0.20091289 -Force
RUN wget -c https://github.com/yudai/gotty/releases/download/v2.0.0-alpha.3/gotty_2.0.0-alpha.3_linux_amd64.tar.gz -O - | tar -xz
COPY ./profile.ps1 /root/.config/powershell/Microsoft.PowerShell_profile.ps1
COPY ./firstrun.sh /
RUN chmod 755 ./firstrun.sh
RUN ./firstrun.sh
WORKDIR /zertoshell
EXPOSE 8080
ENTRYPOINT ["tini", "--"]
CMD ["/bin/bash", "/entrypoint.sh"]