diff --git a/base/Dockerfile b/base/Dockerfile index 78cde63..4d07414 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -5,5 +5,6 @@ ENV PYTHONUNBUFFERED=1 WORKDIR /app COPY app . RUN pip install --no-cache-dir -r requirements.txt +EXPOSE 5123/tcp CMD ["python", "./app.py"] diff --git a/base/app/app.py b/base/app/app.py index 076117a..71f47bd 100644 --- a/base/app/app.py +++ b/base/app/app.py @@ -29,6 +29,7 @@ def b64_lazy_decode(s: str) -> str|None: this = base64.b64decode(s + "=" * ((4 - len(s)) % 4)) return this.decode('utf-8').rstrip('\n') except Exception as e: + print(f"Error decoding base64: {e}") return None def fetch_metadata(url: str, max_retries=5) -> dict|None: