diff --git a/Dockerfile.devpod b/Dockerfile.devpod index 91b98df..e31753d 100644 --- a/Dockerfile.devpod +++ b/Dockerfile.devpod @@ -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"] diff --git a/entrypoint-devpod.sh b/entrypoint-devpod.sh index 3ae310b..2f5b487 100644 --- a/entrypoint-devpod.sh +++ b/entrypoint-devpod.sh @@ -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