The docker file was updated to align with the software requirements of the app. An additional script `install_odbc.sh` is added to install the required microsoft ODBC driver.
25 lines
837 B
Bash
Executable File
25 lines
837 B
Bash
Executable File
#!/bin/sh
|
|
|
|
apt-get update
|
|
apt-get install -y curl gnupg2 apt-transport-https
|
|
|
|
# Debian 12
|
|
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
|
|
|
|
#Download appropriate package for the OS version
|
|
#Choose only ONE of the following, corresponding to your OS version
|
|
|
|
#Debian 12
|
|
curl https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list
|
|
|
|
apt-get update
|
|
ACCEPT_EULA=Y apt-get install -y msodbcsql18
|
|
# optional: for bcp and sqlcmd
|
|
ACCEPT_EULA=Y apt-get install -y mssql-tools18
|
|
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
|
|
. ~/.bashrc
|
|
# optional: for unixODBC development headers
|
|
apt-get install -y unixodbc-dev
|
|
# optional: kerberos library for debian-slim distributions
|
|
apt-get install -y libgssapi-krb5-2
|