Skip to content

Commit

Permalink
expose 5123
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Reynolds committed Aug 20, 2024
1 parent a5ee1e6 commit 8fe80a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions base/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8fe80a1

Please sign in to comment.