fix: set workdir and code-server root to /root for persistent home
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user