Skip to content

Instantly share code, notes, and snippets.

@jancel
Created May 30, 2023 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jancel/bb29700d8ab4073e0efa4a5793639bee to your computer and use it in GitHub Desktop.
Save jancel/bb29700d8ab4073e0efa4a5793639bee to your computer and use it in GitHub Desktop.
Installing SQL Server Tools on Debian 10
FROM debian:10
################################################################
# Install bulk copy program (bcp)
################################################################
RUN apt install -y gnupg2 apt-transport-https wget curl
RUN wget -q -O- https://packages.microsoft.com/keys/microsoft.asc | \
gpg --dearmor | tee /usr/share/keyrings/microsoft.gpg > /dev/null 2>&1
RUN echo "deb [signed-by=/usr/share/keyrings/microsoft.gpg arch=amd64,armhf,arm64] https://packages.microsoft.com/debian/10/prod buster main" | \
tee /etc/apt/sources.list.d/prod.list
RUN apt-get update && env ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment