Skip to content

Commit

Permalink
Merge pull request #49 from UBC-MDS/makefile-fix
Browse files Browse the repository at this point in the history
Makefile fix
  • Loading branch information
MarekB19 authored Dec 16, 2024
2 parents 4e3bc13 + 3dd31aa commit 920e32c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
26 changes: 17 additions & 9 deletions Dockerfile
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!!"
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
# run jupyter notebook inside jupyter
jupyter-notebook:
image: piloxita/dsci-522-2425-team35-heart_disease_diagnostic_machine:1c53335
image: piloxita/dsci-522-2425-team35-heart_disease_diagnostic_machine:d065521
ports:
- "9999:8888"
volumes:
Expand Down

0 comments on commit 920e32c

Please sign in to comment.