Add docker files

This commit is contained in:
Antonio J. Delgado 2024-01-29 18:49:44 +02:00
parent b2c61734a5
commit 07345835bc
4 changed files with 6 additions and 3 deletions

View file

@ -8,4 +8,4 @@ COPY . .
RUN pip install .
VOLUME config
CMD [ "python", "/usr/local/bin/discover_mastodon_servers.py", "--config", "/config/config.conf" ]
CMD [ "python", "/usr/local/bin/__project_codename__.py", "--config", "/config/config.conf" ]

View file

@ -0,0 +1,3 @@
debug_level='DEBUG'
log_file='/config/__project_codename__.log'
# list_of_parameters=['foo', 'bar']

View file

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

View file

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