Skip to content

Commit

Permalink
adding mssql-cli example dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
twright-msft committed May 7, 2018
1 parent b5144d1 commit a01c45a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions linux/preview/examples/mssql-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:16.04

# apt-get update and install required utilities
RUN apt-get update && apt-get install -y \
curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5\
&& rm -rf /var/lib/apt/lists/*

# adding custom MS repository
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list

# Update the list of products
RUN apt-get update

# Install mssql-cli
RUN apt-get install mssql-cli -y

CMD ["/bin/bash", "-c", "sleep infinity"]

0 comments on commit a01c45a

Please sign in to comment.