From 8fe80a15dbcc98f83968a3bbc53fe571b0e43b47 Mon Sep 17 00:00:00 2001 From: Kevin Reynolds Date: Tue, 20 Aug 2024 14:28:38 -0400 Subject: [PATCH] expose 5123 --- base/Dockerfile | 1 + base/app/app.py | 1 + 2 files changed, 2 insertions(+) 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: