29 lines
671 B
Docker
29 lines
671 B
Docker
# Docker image file that describes an Centos7 image with PowerShell installed from Microsoft YUM Repo
|
|
|
|
FROM mcr.microsoft.com/powershell:centos-7
|
|
LABEL maintainer="PowerShell Team <powershellteam@hotmail.com>"
|
|
|
|
# Install dependencies and clean up
|
|
RUN yum install -y \
|
|
glibc \
|
|
libcurl \
|
|
ca-certificates \
|
|
libgcc \
|
|
libicu \
|
|
openssl \
|
|
libstdc++ \
|
|
ncurses-base \
|
|
libunwind \
|
|
uuid \
|
|
zlib \
|
|
which \
|
|
curl \
|
|
git \
|
|
&& yum clean all
|
|
|
|
COPY PowerShellPackage.ps1 /
|
|
|
|
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
|
|
|
# Use PowerShell as the default shell
|
|
ENTRYPOINT [ "pwsh" ]
|