diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..03396da --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/podman_build.sh b/podman_build.sh new file mode 100755 index 0000000..feaa516 --- /dev/null +++ b/podman_build.sh @@ -0,0 +1,2 @@ +#!/bin/sh +podman build -t odi6 . diff --git a/podman_run.sh b/podman_run.sh new file mode 100755 index 0000000..d1a3a6d --- /dev/null +++ b/podman_run.sh @@ -0,0 +1,2 @@ +#!/bin/sh +podman run --mount type=bind,src=config/,target=/config -t --rm --name odi6 odi6