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