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