From 26e512e73f9246f4e2ad8207e42252f8403fe5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Honeiser?= Date: Mon, 9 Dec 2024 12:10:59 +0100 Subject: [PATCH] fix: make entrypoint.sh work as expected --- Dockerfile | 3 ++- entrypoint.sh | 33 ++++++++++++++++++++++++++++++--- 2 files changed, 32 insertions(+), 4 deletions(-) mode change 100644 => 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index bc2f13b..f1dc118 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,4 +20,5 @@ RUN python -m pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code COPY --chown=app:app . . -CMD ["sh", "enrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/app/entrypoint.sh"] +CMD ["run"] diff --git a/entrypoint.sh b/entrypoint.sh old mode 100644 new mode 100755 index 8b9819b..e0596df --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,30 @@ -# Build and publish the tracking lists for safebrowsing and webkit -python lists2safebrowsing.py -python lists2webkit.py \ No newline at end of file +#!/usr/bin/env bash + +_usage() { + cat <