mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add stable Dockerfile for CentOS 7
This commit is contained in:
1 parent
7ac85f6ce0
commit
2c7e687340
1 file changed
+36
@@ -0,0 +1,36 @@
|
|||||||
|
FROM centos:7
|
||||||
|
MAINTAINER Andrew Schwartzmeyer <andschwa@microsoft.com>
|
||||||
|
|
||||||
|
ARG POWERSHELL_RELEASE=v6.0.0-alpha.9
|
||||||
|
ARG POWERSHELL_PACKAGE=powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm
|
||||||
|
|
||||||
|
# Setup the locale
|
||||||
|
ENV LANG en_US.UTF-8
|
||||||
|
ENV LC_ALL $LANG
|
||||||
|
RUN localedef --charmap=UTF-8 --inputfile=en_US $LANG
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Install PowerShell package and clean up
|
||||||
|
RUN curl -SLO https://github.com/PowerShell/PowerShell/releases/download/$POWERSHELL_RELEASE/$POWERSHELL_PACKAGE \
|
||||||
|
&& yum install -y $POWERSHELL_PACKAGE \
|
||||||
|
&& rm $POWERSHELL_PACKAGE
|
||||||
|
|
||||||
|
# Use array to avoid Docker prepending /bin/sh -c
|
||||||
|
ENTRYPOINT [ "powershell" ]
|
||||||
Reference in new issue
Block a user