Skip to content

Commit ee27769

Browse files
added dockerfile for build; updated readme dockerfile rebuild on dev instead of main
1 parent 2583625 commit ee27769

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM jupyter/scipy-notebook
2+
3+
USER root
4+
5+
# install vim
6+
RUN apt-get update && apt-get install -y vim
7+
8+
USER ${NB_UID}
9+
10+
WORKDIR "${HOME}"
11+
12+
# remove the "work/" directory added in an earlier layer...
13+
RUN rm -rf work
14+
15+
# Install R packages
16+
RUN mamba install --quiet --yes \
17+
'numpy' \
18+
'jinja2' \
19+
'altair_data_server' \
20+
'click' \
21+
'ghp-import' \
22+
'jupytext' \
23+
'jupyter_contrib_nbextensions' \
24+
'jupyter-book' \
25+
'nodejs' \
26+
&& mamba clean --all -f -y \
27+
&& fix-permissions "${CONDA_DIR}" \
28+
&& fix-permissions "/home/${NB_USER}"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ in the root directory of this repository. The book can be viewed in your browser
3333

3434
### Update build environment
3535

36-
You can update the build environment for the book by making changes to `Dockerfile` in the root of the repository in the `main` branch.
37-
If you push any changes to the `Dockerfile` on the `main` branch, GitHub will trigger a rebuild of the docker image,
36+
You can update the build environment for the book by making changes to `Dockerfile` in the root of the repository in the `dev` branch.
37+
If you push any changes to the `Dockerfile` on the `dev` branch, GitHub will trigger a rebuild of the docker image,
3838
push it to DockerHub, and update the `build_html.sh` script and book deploy GitHub action with the new image digest.
3939

4040
### Update public html

0 commit comments

Comments
 (0)