-
Notifications
You must be signed in to change notification settings - Fork 768
Expand file tree
/
Copy pathDockerfile.debian11
More file actions
30 lines (23 loc) · 1.01 KB
/
Dockerfile.debian11
File metadata and controls
30 lines (23 loc) · 1.01 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
# SQL Server Command Line Tools
FROM debian:11
LABEL maintainer="SQL Server Engineering Team"
RUN echo "Installing system utilities"
&& apt-get update \
&& apt-get install -y curl apt-transport-https debconf-utils gnupg2 && \
echo "adding custom MS repository" \
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
echo "installing SQL Server drivers and tools" \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 \
&& echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc \
&& /bin/bash -c "source ~/.bashrc" && \
echo "Configuring locales" \
&& apt-get -y install locales \
&& rm -rf /var/lib/apt/lists/* \
&& locale-gen en_US.UTF-8 \
&& localedef -i en_US -f UTF-8 en_US.UTF-8 && \
echo "Cleaning cache" \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]