mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-30 07:55:40 +01:00
19 lines
355 B
Plaintext
19 lines
355 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
if [ -n "${PASSWORD}" ]; then
|
|
AUTH="--auth password"
|
|
else
|
|
echo "starting with no password"
|
|
fi
|
|
|
|
exec \
|
|
s6-setuidgid abc \
|
|
/usr/bin/code-server \
|
|
--port 8443 \
|
|
--user-data-dir /config/data \
|
|
--extensions-dir /config/extensions \
|
|
--disable-telemetry \
|
|
--disable-updates \
|
|
${AUTH} \
|
|
/config/workspace
|