File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ services:
3737 - mssql_network
3838
3939 mssql :
40+ # image: mcr.microsoft.com/mssql/server:2022-latest
4041 build :
4142 context : ./mssql
4243 dockerfile : Dockerfile
Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/mssql/server:2022 -latest
1+ FROM mcr.microsoft.com/mssql/server:2019 -latest
22
33USER root
4+ # 1. Update base packages and install prerequisites
5+ RUN apt-get update \
6+ && apt-get install -y curl apt-transport-https gnupg2
7+
8+ # 2. Add Microsoft signing key and repository
9+ RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
10+ && curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/msprod.list
11+
12+ # 3. Update apt and install the tools
413RUN apt-get update \
5- && apt-get install -y curl gnupg2 apt-transport-https \
6- && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
7- && curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/msprod.list \
8- && apt-get update \
914 && ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y mssql-tools unixodbc-dev \
1015 && echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
1116
12- USER mssql
17+ USER mssql
You can’t perform that action at this time.
0 commit comments