Skip to content

Commit 1373b63

Browse files
committed
Update Ubuntu to 18.04 and mssql-tools
1 parent a7c83b3 commit 1373b63

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
FROM ubuntu:16.04
1+
ARG UBUNTU_VERSION=18.04
2+
FROM ubuntu:$UBUNTU_VERSION
23

34
MAINTAINER Fabian Grutschus "docker@lubyte.de"
45

5-
ENV MSSQLTOOLS_VERSION=17.1.0.1-1
6-
ENV PATH /opt/mssql-tools/bin:$PATH
6+
ARG MSSQLTOOLS_VERSION=17.4.1.1-1
7+
ENV PATH=/opt/mssql-tools/bin:$PATH
78

89
RUN apt-get update \
9-
&& apt-get install -y curl apt-transport-https locales \
10+
&& apt-get install -y curl apt-transport-https locales gnupg2 \
1011
&& locale-gen "en_US.UTF-8" \
12+
&& export `grep "VERSION_ID" /etc/os-release | sed -e 's/^VERSION_ID=\"/VERSION_ID=/' -e 's/\"$//'` \
1113
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
12-
&& curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list \
14+
&& curl https://packages.microsoft.com/config/ubuntu/$VERSION_ID/prod.list | tee /etc/apt/sources.list.d/msprod.list \
1315
&& apt-get update \
1416
&& ACCEPT_EULA=Y apt-get install -y mssql-tools=$MSSQLTOOLS_VERSION unixodbc-dev \
1517
&& apt-get remove -y curl apt-transport-https \
1618
&& rm -f /etc/apt/sources.list.d/msprod.list \
1719
&& rm -rf /var/lib/apt/lists/*
1820

19-
## should be set after locale was generate, overwise triggers warnings
21+
## should be set after locale was generated, overwise triggers warnings
2022
ENV LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" LC_ALL="en_US.UTF-8"
2123

2224
ENTRYPOINT ["sqlcmd"]

0 commit comments

Comments
 (0)