mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-26 22:15:41 +01:00
26 lines
506 B
Plaintext
26 lines
506 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
if [ -n "${PASSWORD}" ]; then
|
|
AUTH="password"
|
|
else
|
|
AUTH="none"
|
|
echo "starting with no password"
|
|
fi
|
|
|
|
if [ -z ${PROXY_DOMAIN+x} ]; then
|
|
PROXY_DOMAIN_ARG=""
|
|
else
|
|
PROXY_DOMAIN_ARG="--proxy-domain=${PROXY_DOMAIN}"
|
|
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}" \
|
|
"${PROXY_DOMAIN_ARG}" \
|
|
/config/workspace
|