File tree Expand file tree Collapse file tree
docker/stable/ubuntu16.04 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM ubuntu:xenial
2+ MAINTAINER Andrew Schwartzmeyer <
[email protected] >
3+
4+ ARG POWERSHELL_RELEASE=v6.0.0-alpha.9
5+ ARG POWERSHELL_PACKAGE=powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb
6+
7+ # Setup the locale
8+ ENV LANG en_US.UTF-8
9+ ENV LC_ALL $LANG
10+ RUN locale-gen $LANG && update-locale
11+
12+ # Install dependencies and clean up
13+ RUN apt-get update \
14+ && apt-get install -y --no-install-recommends \
15+ libc6 \
16+ libcurl3 \
17+ ca-certificates \
18+ libgcc1 \
19+ libicu55 \
20+ libssl1.0.0 \
21+ libstdc++6 \
22+ libtinfo5 \
23+ libunwind8 \
24+ libuuid1 \
25+ zlib1g \
26+ curl \
27+ git \
28+ && rm -rf /var/lib/apt/lists/*
29+
30+ # Install PowerShell package and clean up
31+ RUN curl -SLO https://github.com/PowerShell/PowerShell/releases/download/$POWERSHELL_RELEASE/$POWERSHELL_PACKAGE \
32+ && dpkg -i $POWERSHELL_PACKAGE \
33+ && rm $POWERSHELL_PACKAGE
34+
35+ # Use array to avoid Docker prepending /bin/sh -c
36+ ENTRYPOINT [ "powershell" ]
You can’t perform that action at this time.
0 commit comments