diff --git a/linux/preview/Dockerfile b/linux/preview/Dockerfile index d7315331..657c4031 100644 --- a/linux/preview/Dockerfile +++ b/linux/preview/Dockerfile @@ -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 /