From 1f4945fa4b237f4f43dd8c0d562ce1819a2b409f Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 19 Jul 2025 12:51:46 +0300 Subject: [PATCH] Add container --- Dockerfile | 11 +++++++++++ podman_build.sh | 2 ++ podman_run.sh | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 Dockerfile create mode 100755 podman_build.sh create mode 100755 podman_run.sh 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