Skip to content

Commit 1bbe8a0

Browse files
committed
add Dockerfile for mssql-tools18 based on Ubuntu 22.04
1 parent c900433 commit 1bbe8a0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)