Skip to content

Commit 319c99c

Browse files
authored
Use Ubuntu 24.04 image for Microsoft ODBC (#2196)
* Use Ubuntu 24.04 image for Microsoft ODBC * Fix typo * Don't use apt-key
1 parent 2483ba8 commit 319c99c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/using/recipe_code/microsoft_odbc.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/jupyter/base-notebook:ubuntu-22.04
1+
FROM quay.io/jupyter/base-notebook
22

33
# Fix: https://github.com/hadolint/hadolint/wiki/DL4006
44
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
@@ -11,7 +11,7 @@ ENV PATH="/opt/mssql-tools18/bin:${PATH}"
1111

1212
RUN apt-get update --yes && \
1313
apt-get install --yes --no-install-recommends curl gnupg2 lsb-release && \
14-
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
14+
curl -fsSL "https://packages.microsoft.com/keys/microsoft.asc" | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg && \
1515
curl "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list" > /etc/apt/sources.list.d/mssql-release.list && \
1616
apt-get update --yes && \
1717
ACCEPT_EULA=Y apt-get install --yes --no-install-recommends msodbcsql18 && \

0 commit comments

Comments
 (0)