-
Notifications
You must be signed in to change notification settings - Fork 768
Expand file tree
/
Copy pathDockerfile.ubuntu2204
More file actions
30 lines (23 loc) · 1.01 KB
/
Dockerfile.ubuntu2204
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 ubuntu:22.04
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/ubuntu/22.04/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
echo "Install 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 \
&& update-locale LANG=en_US.UTF-8 && \
echo "Cleaning cache" \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]