Skip to content

Commit 7ea0fcf

Browse files
committed
Update custom image docs to reflect multistage build
1 parent 23bf6a1 commit 7ea0fcf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/source/administrator/services.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ In the following snippet, I'm using a custom image that copies over the applicat
1818

1919
```Dockerfile
2020
# Dockerfile
21-
# 0.11.1 is latest stable release at the time of this writing
22-
FROM jupyterhub/k8s-hub:0.11.1
21+
# 2.0.0 is latest stable release at the time of this writing
22+
FROM jupyterhub/k8s-hub:2.0.0
2323

24+
# The k8s-hub uses a multi-stage build to modify packages your build steps may need to run as root
25+
USER root
2426
COPY ./service-fastapi /usr/src/fastapi
2527
RUN python3 -m pip install -r /usr/src/fastapi/requirements.txt
28+
29+
USER ${NB_USER}
2630
```
2731

2832
```yaml

0 commit comments

Comments
 (0)