Skip to content

feat: adds mssql-tools package to container #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions linux/preview/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ FROM ubuntu:16.04
# Default SQL Server TCP/Port.
EXPOSE 1433

# Setup mssql-tools package
# 1. Install curl & apt-transport-https
# 2. Obtain Microsoft repo GPG keys & sources
# 3. Install mssql-tools package
# 4. Purge unnecessary tools (curl) and clean up apt
RUN apt-get update && \
apt-get install -y curl apt-transport-https && \
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -y mssql-tools && \
apt-get purge -y curl && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Copy all SQL Server runtime files from build drop into image.
COPY ./install /

Expand Down