-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (25 loc) · 1011 Bytes
/
Dockerfile
File metadata and controls
30 lines (25 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SQL Server Command Line Tools - custom image
# From Ubuntu 16.04 as base image
FROM ubuntu:16.04 as base
# Labels
LABEL maintainer="crobles@dbamastery.com"
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name="mssql-polybase"
LABEL org.label-schema.description="mssql-polybase updated image"
LABEL org.label-schema.url="http://dbamastery.com"
# Installing system utilities
RUN apt-get update && \
apt-get install -y apt-transport-https curl && \
# Adding custom MS repository
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2019.list > /etc/apt/sources.list.d/mssql-server-2019.list
# From base image
FROM base as release
# Installing SQL Server drivers and tools
RUN apt-get update && \
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