From ad998246caf93940e36706297dd9d458fa9dce7f Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Mon, 2 Dec 2024 13:37:35 -0500 Subject: [PATCH] updated comments --- src/node.Dockerfile | 2 +- src/node_entrypoint.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node.Dockerfile b/src/node.Dockerfile index b78a26d2d..5db6648df 100644 --- a/src/node.Dockerfile +++ b/src/node.Dockerfile @@ -1,7 +1,7 @@ FROM docker.io/cimg/node:current-browsers WORKDIR /app -# Install gosu +# Install gosu to run command as a specific user, circleci. Clean up lists. USER root RUN apt-get update && \ apt-get install -y gosu && \ diff --git a/src/node_entrypoint.sh b/src/node_entrypoint.sh index ba3b9791d..0eb160f0a 100755 --- a/src/node_entrypoint.sh +++ b/src/node_entrypoint.sh @@ -9,4 +9,5 @@ echo "Updating circleci user and group to match host UID:GID ($HOST_UID:$HOST_GI sudo groupmod -g "$HOST_GID" circleci sudo usermod -u "$HOST_UID" circleci +# Run command as circleci user. Note that command, run_node_watch.sh, is passed as arg to entrypoint exec gosu circleci "$@"