-
Notifications
You must be signed in to change notification settings - Fork 768
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 931 Bytes
/
Dockerfile
File metadata and controls
23 lines (20 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# mssql-server-polybase
# Maintainers: Microsoft Corporation
# GitRepo: https://github.com/Microsoft/mssql-docker
# Base OS layer: Latest Ubuntu LTS
FROM ubuntu:16.04
# Install prerequistes including repo config for SQL server and PolyBase.
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -yq apt-transport-https curl && \
# Get official Microsoft repository configuration
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2019.list | tee /etc/apt/sources.list.d/mssql-server-2019.list && \
apt-get update && \
# Install PolyBase will also install SQL Server via dependency mechanism.
apt-get install -y mssql-server-polybase && \
# Cleanup the Dockerfile
apt-get clean && \
rm -rf /var/lib/apt/lists
# Run SQL Server process
CMD /opt/mssql/bin/sqlservr