Add container

This commit is contained in:
Antonio J. Delgado 2025-07-19 12:51:46 +03:00
parent 95c7092998
commit 1f4945fa4b
3 changed files with 15 additions and 0 deletions

11
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/odi6.py", "--config", "/config/config.conf" ]

2
podman_build.sh Executable file
View file

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

2
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 odi6 odi6