File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # SQL Server Command Line Tools
2
+ FROM ubuntu:22.04
3
+
4
+ LABEL maintainer="SQL Server Engineering Team"
5
+
6
+ # apt-get and system utilities
7
+ RUN apt-get update && apt-get install -y \
8
+ curl apt-transport-https debconf-utils gnupg2
9
+
10
+ # adding custom MS repository
11
+ RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
12
+ RUN curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
13
+
14
+ # install SQL Server drivers and tools
15
+ RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18
16
+ RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
17
+ RUN /bin/bash -c "source ~/.bashrc"
18
+
19
+
20
+
21
+ RUN apt-get -y install locales \
22
+ && rm -rf /var/lib/apt/lists/*
23
+ RUN locale-gen en_US.UTF-8
24
+ RUN update-locale LANG=en_US.UTF-8
25
+
26
+
27
+
28
+ CMD /bin/bash
You can’t perform that action at this time.
0 commit comments