fix: set workdir and code-server root to /root for persistent home
All checks were successful
Build Devpod / build (push) Successful in 19s
Build & Release / build (push) Successful in 16s

This commit is contained in:
Ryan Moon
2026-04-04 08:43:36 -05:00
parent 3d081ee01f
commit b3e67d1483
2 changed files with 7 additions and 3 deletions

View File

@@ -41,6 +41,6 @@ RUN mkdir -p /run/sshd /root/.ssh && chmod 700 /root/.ssh
COPY entrypoint-devpod.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
WORKDIR /workspace
WORKDIR /root
EXPOSE 8080 22
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -16,6 +16,10 @@ fi
# Start code-server
exec code-server \
--bind-addr 0.0.0.0:8080 \
--auth password \
--auth oauth \
--oauth-provider=gitea \
--oauth-client-id="${GITEA_CLIENT_ID}" \
--oauth-client-secret="${GITEA_CLIENT_SECRET}" \
--oauth-scopes="read:user" \
--disable-telemetry \
/workspace
/root