File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1- FROM ubuntu:16.04
1+ ARG UBUNTU_VERSION=18.04
2+ FROM ubuntu:$UBUNTU_VERSION
23
34MAINTAINER 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
89RUN 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
2022ENV LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" LC_ALL="en_US.UTF-8"
2123
2224ENTRYPOINT ["sqlcmd" ]
You can’t perform that action at this time.
0 commit comments