Add default email and docker files

This commit is contained in:
Antonio J. Delgado 2024-01-29 18:46:33 +02:00
parent 381d498d81
commit b2c61734a5
4 changed files with 16 additions and 0 deletions

View file

@ -21,6 +21,7 @@ function usage() {
fi
echo ""
}
AUTHOR_EMAIL="${USER}@$(hostname -f)"
# shellcheck disable=SC1090
if [ -e "$(dirname "${0}")/defaults" ]
then

11
skeleton/Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN pip install .
VOLUME config
CMD [ "python", "/usr/local/bin/discover_mastodon_servers.py", "--config", "/config/config.conf" ]

2
skeleton/podman_build.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
podman build -t discovery-mastodon-servers .

2
skeleton/podman_run.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
podman run --mount type=bind,src=config/,target=/config -t --rm --name discovery-mastodon-servers discovery-mastodon-servers