Skip to content

Commit

Permalink
Update Dockerfile.devenv
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanieleroux authored Oct 11, 2024
1 parent d8cf64f commit f556f02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfiles/Dockerfile.devenv
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Use the official Jupyter Notebook base image
FROM jupyter/scipy-notebook:latest

# Switch to root to install system dependencies
USER root

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gfortran \
Expand All @@ -9,8 +12,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
netcdf-bin \
libnetcdff-dev \
vim \
ncview \
&& rm -rf /var/lib/apt/lists/*


# Switch back to the default user (jovyan)
USER ${NB_USER}

# Install Python packages using pip
RUN pip install --no-cache-dir \
cartopy \
Expand Down

0 comments on commit f556f02

Please sign in to comment.