From 5f6b06a66ab64f5203d0d2e58f7c0b8136b35c1d Mon Sep 17 00:00:00 2001 From: "XPS\\Micro" Date: Thu, 19 Mar 2026 14:28:54 +0100 Subject: [PATCH] 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 --- container_manager.py | 4 ---- user-template-vcoder/Dockerfile | 7 ------- 2 files changed, 11 deletions(-) diff --git a/container_manager.py b/container_manager.py index 31cf18e..e9c8b12 100644 --- a/container_manager.py +++ b/container_manager.py @@ -256,10 +256,6 @@ class ContainerManager: '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( image=image, name=container_name, diff --git a/user-template-vcoder/Dockerfile b/user-template-vcoder/Dockerfile index 9d99eb2..bd9b433 100644 --- a/user-template-vcoder/Dockerfile +++ b/user-template-vcoder/Dockerfile @@ -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 RUN printf '#!/bin/bash\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 USER coder