-
Notifications
You must be signed in to change notification settings - Fork 768
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (51 loc) · 2.19 KB
/
Dockerfile
File metadata and controls
59 lines (51 loc) · 2.19 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainers: Microsoft Corporation
FROM ubuntu:22.04
# copy in supervisord conf file
COPY ./supervisord.conf /usr/local/etc/supervisord.conf
# install supporting packages
RUN apt-get update && \
apt-get install -y apt-transport-https \
curl \
supervisor \
fakechroot \
locales \
iptables \
sudo \
wget \
curl \
zip \
unzip \
make \
bzip2 \
m4 \
apt-transport-https \
tzdata \
libnuma-dev \
libsss-nss-idmap-dev \
software-properties-common
# Adding custom MS repository
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/mssql-server-2019.list > /etc/apt/sources.list.d/mssql-server-2019.list
# install SQL Server ML services R and Python packages which will also install the mssql-server pacakge, the package for SQL Server itself
# if you want to install only Python or only R, you can add/remove the package as needed below
RUN apt-get update && \
apt-get install -y mssql-mlservices-packages-r \
mssql-mlservices-packages-py && \
# Cleanup the Dockerfile
apt-get clean && \
rm -rf /var/apt/cache/* /tmp/* /var/tmp/* /var/lib/apt/lists
# run checkinstallextensibility.sh
RUN /opt/mssql/bin/checkinstallextensibility.sh && \
# set/fix directory permissions and create default directories
chown -R root:root /opt/mssql/bin/launchpadd && \
chown -R root:root /opt/mssql/bin/setnetbr && \
mkdir -p /var/opt/mssql-extensibility/data && \
mkdir -p /var/opt/mssql-extensibility/log && \
chown -R root:root /var/opt/mssql-extensibility && \
chmod -R 777 /var/opt/mssql-extensibility && \
# locale-gen
locale-gen en_US.UTF-8
# expose SQL Server port
EXPOSE 1433
# start services with supervisord
CMD /usr/bin/supervisord -n -c /usr/local/etc/supervisord.conf