Add container
This commit is contained in:
parent
95c7092998
commit
1f4945fa4b
3 changed files with 15 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
2
podman_build.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
podman build -t odi6 .
|
2
podman_run.sh
Executable file
2
podman_run.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
podman run --mount type=bind,src=config/,target=/config -t --rm --name odi6 odi6
|
Loading…
Reference in a new issue