File tree Expand file tree Collapse file tree 1 file changed +13
-18
lines changed
Expand file tree Collapse file tree 1 file changed +13
-18
lines changed Original file line number Diff line number Diff line change 11FROM ubuntu:16.04
22
3- MAINTAINER Fabian Grutschus "f.grutschus @lubyte"
3+ MAINTAINER Fabian Grutschus "docker @lubyte.de "
44
5- RUN apt-get update
6-
7- RUN apt-get install -y curl apt-transport-https locales
8-
9- ENV ACCEPT_EULA=Y
10-
11- RUN locale-gen "en_US.UTF-8"
5+ ENV MSSQLTOOLS_VERSION=17.1.0.1-1
6+ ENV PATH /opt/mssql-tools/bin:$PATH
127
13- RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
8+ RUN apt-get update \
9+ && apt-get install -y curl apt-transport-https locales \
10+ && locale-gen "en_US.UTF-8" \
11+ && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
1412 && curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list \
1513 && apt-get update \
16- && apt-get install -y mssql-tools unixodbc-dev
17-
18- ENV PATH /opt/mssql-tools/bin:$PATH
19-
20- RUN apt-get remove -y curl apt-transport-https \
21- && apt-get autoremove -y \
22- && apt-get clean \
23- && apt-get autoclean
14+ && ACCEPT_EULA=Y apt-get install -y mssql-tools=$MSSQLTOOLS_VERSION unixodbc-dev \
15+ && apt-get remove -y curl apt-transport-https \
16+ && rm -f /etc/apt/sources.list.d/msprod.list \
17+ && rm -rf /var/lib/apt/lists/*
2418
25- ENV LANG="en_US.UTC-8"
19+ # # should be set after locale was generate, overwise triggers warnings
20+ ENV LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" LC_ALL="en_US.UTF-8"
2621
2722ENTRYPOINT ["sqlcmd" ]
You can’t perform that action at this time.
0 commit comments