Skip to content

Commit e87104a

Browse files
authored
Merge pull request #3003 from pnasrat/update-custom-image-doc
docs: Update custom image docs to reflect root requirement
2 parents c238b5d + 4db21c0 commit e87104a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/source/administrator/services.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ 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+
# Depending on version, the k8s-hub image may have installed
25+
# pip packages as root, forcing you to install as root as well
26+
USER root
2427
COPY ./service-fastapi /usr/src/fastapi
2528
RUN python3 -m pip install -r /usr/src/fastapi/requirements.txt
29+
30+
USER ${NB_USER}
2631
```
2732

2833
```yaml

0 commit comments

Comments
 (0)