Skip to content

Commit

Permalink
fix: upgrade to debian and python 12
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Apr 29, 2024
1 parent b0c7a5c commit 95c7ce6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 95c7ce6

Please sign in to comment.