fix: Remove unsupported --base-path flag from code-server
code-server 4.111.0 does not support --base-path option. Traefik StripPrefix middleware handles path removal instead. This fixes the 'Unknown option --base-path' crash loop. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ffc285358c
commit
5f6b06a66a
|
|
@ -256,10 +256,6 @@ class ContainerManager:
|
||||||
'JWT_SECRET': Config.SECRET_KEY # Für Token-Validierung im Container
|
'JWT_SECRET': Config.SECRET_KEY # Für Token-Validierung im Container
|
||||||
}
|
}
|
||||||
|
|
||||||
# vcoder braucht BASE_PATH für code-server Subpath-Routing
|
|
||||||
if container_type == 'vcoder':
|
|
||||||
env_vars['BASE_PATH'] = f'/{slug_with_suffix}'
|
|
||||||
|
|
||||||
container = self._get_client().containers.run(
|
container = self._get_client().containers.run(
|
||||||
image=image,
|
image=image,
|
||||||
name=container_name,
|
name=container_name,
|
||||||
|
|
|
||||||
|
|
@ -61,13 +61,6 @@ RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/*
|
||||||
# Entrypoint-Script - startet socat Tunnel + code-server
|
# Entrypoint-Script - startet socat Tunnel + code-server
|
||||||
RUN printf '#!/bin/bash\n\
|
RUN printf '#!/bin/bash\n\
|
||||||
socat TCP-LISTEN:8008,reuseaddr,fork TCP:localhost:9009 &\n\
|
socat TCP-LISTEN:8008,reuseaddr,fork TCP:localhost:9009 &\n\
|
||||||
# Wenn BASE_PATH nicht gesetzt, nutze "/"\n\
|
|
||||||
BASE_PATH="${BASE_PATH:=/}"\n\
|
|
||||||
# Ersetze in CMD das --bind-addr mit vollständigen Flags\n\
|
|
||||||
if [ "$1" = "code-server" ]; then\n\
|
|
||||||
shift\n\
|
|
||||||
exec code-server "--bind-addr" "0.0.0.0:8080" "--base-path" "$BASE_PATH" "--auth" "none" "$@"\n\
|
|
||||||
fi\n\
|
|
||||||
exec "$@"\n' > /entrypoint.sh && chmod +x /entrypoint.sh
|
exec "$@"\n' > /entrypoint.sh && chmod +x /entrypoint.sh
|
||||||
|
|
||||||
USER coder
|
USER coder
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user