From f5c0da3858cc78eb0fdc00606fd12f6f62388bfe Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 29 Jan 2024 15:34:54 +0200 Subject: [PATCH] Add config volume --- Dockerfile | 4 ++-- config/config.conf_sample | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 config/config.conf_sample diff --git a/Dockerfile b/Dockerfile index 5f946ae..82da968 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,6 @@ COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY . . RUN pip install . +VOLUME config -# CMD [ "python", "./your-daemon-or-script.py" ] -CMD [ "sh" ] +CMD [ "python", "/usr/local/bin/discover_mastodon_servers.py", "--config", "/config/config.conf" ] diff --git a/config/config.conf_sample b/config/config.conf_sample new file mode 100644 index 0000000..0958163 --- /dev/null +++ b/config/config.conf_sample @@ -0,0 +1,3 @@ +debug_level='DEBUG' +regexp_banned_host=['.*activitypub\-troll\.cf', '.*\.gab\.best'] +database_file='/config/mastodon-servers.db'