Skip to content

Commit 33aa5f4

Browse files
author
OutlyingWest
committed
redundant install commands deleted
1 parent 4f09e49 commit 33aa5f4

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.binder/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,18 @@ RUN apt-get update && apt-get install -y \
1616
software-properties-common \
1717
python3 \
1818
python3-pip
19-
20-
# Install scorep from PPA
19+
20+
# Install scorep from PPA
2121
RUN add-apt-repository -y ppa:score-p/releases \
2222
&& apt-get update \
2323
&& apt-get install -y scorep
2424

2525
# Upgrade pip and install base Python dependencies
26-
RUN pip3 install pip setuptools wheel
26+
RUN pip3 install --upgrade pip setuptools wheel
2727

2828
# Install Score-P Python bindings
2929
RUN pip3 install --no-cache-dir scorep
3030

31-
# Install JUmPER kernel
32-
RUN pip3 install --no-cache-dir jumper-kernel && \
33-
python3 -m jumper.install
34-
3531
# Create jovyan user with UID 1000 (Binder requirement)
3632
RUN adduser --disabled-password \
3733
--gecos "Default user" \
@@ -50,11 +46,14 @@ USER ${NB_USER}
5046
# Ensure the PATH includes the correct Python location
5147
ENV PATH="${HOME}/.local/bin:${PATH}"
5248

49+
# Install JupyterLab and notebook
50+
RUN pip install --no-cache-dir jupyterlab notebook
51+
5352
# Install project dependencies from pyproject.toml using pip
5453
RUN pip install --no-cache-dir .
5554

56-
# Install JupyterLab and notebook
57-
RUN pip install --no-cache-dir jupyterlab notebook
55+
# Install JUmPER
56+
RUN python3 -m jumper.install --user
5857

5958
# Expose Jupyter Notebook port
6059
EXPOSE 8888

0 commit comments

Comments
 (0)