mirror of
https://github.com/coder/code-server.git
synced 2026-05-27 17:13:49 +02:00
Allow user Entrypoint scripts
This commit is contained in:
@@ -18,4 +18,13 @@ if [ "${DOCKER_USER-}" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Allow users to have scripts run on container startup to prepare workspace.
|
||||
# https://github.com/coder/code-server/issues/5177
|
||||
chmod u+x ${ENTRYPOINTD}/*.sh
|
||||
sudo chown -R ${USER} ${ENTRYPOINTD}/*
|
||||
for f in ${ENTRYPOINTD}/*.sh; do
|
||||
echo "Running Entrypoint: ${f}"
|
||||
bash "${f}"
|
||||
done
|
||||
|
||||
exec dumb-init /usr/bin/code-server "$@"
|
||||
|
||||
Reference in New Issue
Block a user