-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
FROM quay.io/jupyter/minimal-notebook:afe30f0c9ad8 | ||
|
||
# Copy the conda lock file into the container | ||
COPY conda-linux-64.lock /tmp/conda-linux-64.lock | ||
|
||
# Switch to root user to install additional packages | ||
USER root | ||
|
||
# install lmodern for Quarto PDF rendering | ||
RUN sudo apt update \ | ||
&& sudo apt install -y \ | ||
lmodern | ||
# Install lmodern and make for Quarto PDF rendering and build tools | ||
RUN apt update && apt install -y lmodern make \ | ||
&& apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Fix permissions | ||
RUN fix-permissions "/home/${NB_USER}" | ||
|
||
# Switch back to the notebook user | ||
USER $NB_UID | ||
|
||
# Update mamba environment and clean up | ||
RUN mamba update --quiet --file /tmp/conda-linux-64.lock \ | ||
&& mamba clean --all -y -f \ | ||
&& fix-permissions "${CONDA_DIR}" \ | ||
&& fix-permissions "/home/${NB_USER}" | ||
RUN pip install \ | ||
&& fix-permissions "${CONDA_DIR}" | ||
|
||
# Install Python packages with pip | ||
RUN pip install --no-cache-dir \ | ||
deepchecks==0.18.1 \ | ||
seaborn==0.13.2 \ | ||
altair-ally==0.1.1 | ||
|
||
RUN echo "Done Building Container!!" | ||
# Log container build completion | ||
RUN echo "Done Building Container!!" |