mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-07 01:02:55 +08:00
7101ba5fee
* sandbox-sync-agent (#6565) * action * action --------- Co-authored-by: Ryo <whoeverimf5@gmail.com>
20 lines
592 B
Bash
20 lines
592 B
Bash
#!/bin/bash
|
|
|
|
# Set work directory from environment variable, default to /home/sandbox
|
|
WORKDIR="${FASTGPT_WORKDIR:-/home/sandbox}"
|
|
mkdir -p "${WORKDIR}"
|
|
|
|
# Start code-server
|
|
# --bind-addr 0.0.0.0:8080 allows access from outside the container
|
|
# --auth none removes password protection
|
|
exec code-server \
|
|
--bind-addr 0.0.0.0:8080 \
|
|
--auth none \
|
|
--disable-telemetry \
|
|
--disable-update-check \
|
|
--disable-workspace-trust \
|
|
--disable-getting-started-override \
|
|
--app-name "Skills" \
|
|
--user-data-dir /home/sandbox/.local/share/code-server \
|
|
"${WORKDIR}"
|