Skip to content

Commit 1dc62a1

Browse files
committed
Make notebook user first
1 parent 52ba8ed commit 1dc62a1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# syntax=docker/dockerfile:experimental
2-
# FROM quay.io/unstructured-io/base-images:wolfi-base-latest as base
32
FROM cgr.dev/chainguard/python as base
43

54
# NOTE(crag): NB_USER ARG for mybinder.org compat:
65
# https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html
76
ARG NB_USER=notebook-user
87
ARG NB_UID=1000
8+
9+
# Create the user
10+
USER root
11+
RUN adduser -D -u ${NB_UID} ${NB_USER}
12+
ENV HOME=/home/${NB_USER}
13+
914
ARG PIPELINE_PACKAGE
1015
ARG PYTHON_VERSION="3.12"
1116

0 commit comments

Comments
 (0)