mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-12-23 10:57:43 +01:00
21 lines
353 B
Plaintext
21 lines
353 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
cd /opt/code-server || exit
|
|
|
|
if [ -n "${PASSWORD}" ]; then
|
|
PASSARG="-P ${PASSWORD}"
|
|
else
|
|
PASSARG="-N"
|
|
echo "starting with no password"
|
|
fi
|
|
|
|
exec \
|
|
s6-setuidgid abc \
|
|
/opt/code-server/code-server \
|
|
-H \
|
|
${PASSARG} \
|
|
-d /config/data \
|
|
-e /config/extensions \
|
|
--disable-telemetry \
|
|
/config/workspace
|