mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 18:14:05 +00:00

* Add an ability to specify registry when using docker images
* Fix typo
* [TMP] Speedup workflow
* Revert "[TMP] Speedup workflow"
This reverts commit 3af0055ccf
.
31 lines
1.2 KiB
Docker
31 lines
1.2 KiB
Docker
FROM docker.io/jupyter/base-notebook
|
|
|
|
# Fix: https://github.com/hadolint/hadolint/wiki/DL4006
|
|
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
USER root
|
|
|
|
ENV MSSQL_DRIVER "ODBC Driver 18 for SQL Server"
|
|
ENV PATH="/opt/mssql-tools18/bin:${PATH}"
|
|
|
|
RUN apt-get update --yes && \
|
|
apt-get install --yes --no-install-recommends curl gnupg2 lsb-release && \
|
|
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
|
|
curl "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list" > /etc/apt/sources.list.d/mssql-release.list && \
|
|
apt-get update --yes && \
|
|
ACCEPT_EULA=Y apt-get install --yes --no-install-recommends msodbcsql18 && \
|
|
# optional: for bcp and sqlcmd
|
|
ACCEPT_EULA=Y apt-get install --yes --no-install-recommends mssql-tools18 && \
|
|
# optional: for unixODBC development headers
|
|
apt-get install --yes --no-install-recommends unixodbc-dev && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Switch back to jovyan to avoid accidental container runs as root
|
|
USER ${NB_UID}
|
|
|
|
RUN mamba install --yes 'pyodbc' && \
|
|
mamba clean --all -f -y && \
|
|
fix-permissions "${CONDA_DIR}" && \
|
|
fix-permissions "/home/${NB_USER}"
|