From 95c7ce663de993888a92f02a114aba16c067dfa5 Mon Sep 17 00:00:00 2001 From: steveoh Date: Mon, 29 Apr 2024 13:12:11 -0600 Subject: [PATCH] fix: upgrade to debian and python 12 --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64a3563..3505a76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,14 @@ -FROM python:3.10-buster +FROM python:3.12-bookworm -RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - +RUN curl https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc -RUN curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list +RUN curl https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list + +RUN sed -i 's/ signed-by=\/usr\/share\/keyrings\/microsoft-prod.gpg//g' /etc/apt/sources.list.d/mssql-release.list RUN apt-get update -y && apt-get upgrade -y -RUN ACCEPT_EULA=Y apt-get install unixodbc-dev unixodbc-dev libpq-dev msodbcsql17 -y --no-install-recommends +RUN ACCEPT_EULA=Y apt-get install unixodbc-dev unixodbc-dev libpq-dev msodbcsql18 -y --no-install-recommends RUN chmod +rwx /etc/ssl/openssl.cnf RUN sed -i 's/TLSv1.2/TLSv1/g' /etc/ssl/openssl.cnf