mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-23 12:35:40 +01:00
20 lines
371 B
Plaintext
20 lines
371 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 \
|
|
--port 8443 \
|
|
--user-data-dir /config/data \
|
|
--extensions-dir /config/extensions \
|
|
--disable-telemetry \
|
|
--disable-updates \
|
|
--auth "${AUTH}" \
|
|
/config/workspace
|