Last active
March 23, 2023 12:23
-
-
Save AliKhadivi/80321ab5208cf216f768d7f1f5f23cc8 to your computer and use it in GitHub Desktop.
Dockerfile for SQL Server tools (sqlcmd, bcp, mssql-scripter) using Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
ARG DEBIAN_FRONTEND=noninteractive | |
ARG ACCEPT_EULA=Y | |
RUN apt update && apt install curl gnupg2 ca-certificates -y && \ | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \ | |
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | tee /etc/apt/sources.list.d/msprod.list && \ | |
apt update && apt upgrade -y && \ | |
apt install mssql-tools unixodbc-dev python3 python3-pip libunwind8 libssl1.0 -y && \ | |
apt autoremove -y && apt clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/cache/debconf/*-old && \ | |
ln -s /usr/bin/python3 /usr/bin/python && \ | |
pip3 install --upgrade pip && pip3 install mssql-scripter | |
ENV PATH="${PATH}:/opt/mssql-tools/bin/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment