| ADD file:5d6b639e8b6bcc01149b7486502558088f9816200063ca72b91a1f989bc8d85e in / |
| CMD ["bash"] |
| ARG PS_VERSION=7.3.0-preview.8 |
| ARG PS_INSTALL_VERSION=7-preview |
| COPY /opt/microsoft/powershell /opt/microsoft/powershell # buildkit |
| ARG PS_INSTALL_VERSION=7-preview |
| ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/7 DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Debian-11 |
| RUN |3 PS_VERSION=7.4.2 PS_INSTALL_VERSION=7 PS_INSTALL_VERSION=7 /bin/sh -c apt-get update && apt-get install --no-install-recommends -y less locales ca-certificates gss-ntlmssp libicu67 libssl1.1 libc6 libgcc1 libgssapi-krb5-2 libstdc++6 zlib1g openssh-client && apt-get dist-upgrade -y && apt-get clean && rm -rf /var/lib/apt/lists/* && sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen && locale-gen && update-locale # buildkit |
| RUN |3 PS_VERSION=7.4.2 PS_INSTALL_VERSION=7 PS_INSTALL_VERSION=7 /bin/sh -c chmod a+x,o-w ${PS_INSTALL_FOLDER}/pwsh && ln -s ${PS_INSTALL_FOLDER}/pwsh /usr/bin/pwsh && export POWERSHELL_TELEMETRY_OPTOUT=1 && pwsh -NoLogo -NoProfile -Command " \$ErrorActionPreference = 'Stop' ; \$ProgressPreference = 'SilentlyContinue' ; while(!(Test-Path -Path \$env:PSModuleAnalysisCachePath)) { Write-Host "'Waiting for $env:PSModuleAnalysisCachePath'" ; Start-Sleep -Seconds 6 ; }" # buildkit |
| CMD ["pwsh"] |
| VOLUME [/stacks] |
| ENV CHAIN=SWARM-NAT STACKS=/stacks |
| WORKDIR / |
| COPY docker/docker.asc /etc/apt/keyrings/ # buildkit |
| COPY docker/docker.sources /etc/apt/sources.list.d/docker.sources # buildkit |
| RUN /bin/sh -c pwsh -c 'Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted' && pwsh -c 'Install-Module powershell-yaml' && apt-get update && apt-get -y dist-upgrade && apt-get -y install iptables docker-ce-cli && rm -rf /var/cache/apt # buildkit |
| COPY expose_forwards.ps1 ./ # buildkit |
| CMD ["pwsh" "-File" "expose_forwards.ps1"] |