Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da024ec

Browse files
committed
Add stable Dockerfile for 16.04
1 parent 7375ab5 commit da024ec

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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" ]

0 commit comments

Comments
 (0)