mirror of
https://github.com/Icinga/icingadb.git
synced 2025-12-18 23:16:16 -05:00
Containerfile: allow running the binary without absolute path
This sets the PATH environment variable so that the binary installed to the container image can be found by just its name. This makes it nicer to manually provide a command by the container, so for example, now "docker run --rm -it icinga/icingadb:dev icingadb --version" works. The binary is still installed under the same path, so it can still be invoked using the same absolute path as before.
This commit is contained in:
parent
5d43cb20d9
commit
d337826415
1 changed files with 2 additions and 1 deletions
|
|
@ -40,4 +40,5 @@ COPY --from=build /icingadb /icingadb
|
|||
|
||||
USER icinga
|
||||
|
||||
CMD ["/icingadb", "--database-auto-import"]
|
||||
ENV PATH=/
|
||||
CMD ["icingadb", "--database-auto-import"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue