This commit is contained in:
parent
2d2edec55b
commit
739fe90b20
@ -6,18 +6,12 @@ USER root
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
RUN \
|
||||
TMPFILE=$(mktemp) && \
|
||||
wget -O "${TMPFILE}" https://packages.microsoft.com/keys/microsoft.asc && \
|
||||
DEBIAN_FRONTEND=noninteractive apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt upgrade -y && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y gnupg && \
|
||||
apt-key add "${TMPFILE}" && \
|
||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EB3E94ADBE1229CF && \
|
||||
rm "${TMPFILE}" && \
|
||||
source /etc/os-release && \
|
||||
wget https://packages.microsoft.com/config/ubuntu/${VERSION_ID}/prod.list -O /etc/apt/sources.list.d/mssql-release.list && \
|
||||
wget -O "/tmp/a.deb" https://packages.microsoft.com/ubuntu/${VERSION_ID}/prod/pool/main/p/packages-microsoft-prod/packages-microsoft-prod_1.1-ubuntu${VERSION_ID}_all.deb && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y /tmp/a.deb && \
|
||||
rm /tmp/a.deb && \
|
||||
DEBIAN_FRONTEND=noninteractive apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt install -y msodbcsql17 mssql-tools && \
|
||||
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt install -y msodbcsql18 mssql-tools18 && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get clean
|
||||
|
||||
USER zabbix
|
||||
|
Loading…
x
Reference in New Issue
Block a user