docker: Fix path to init when workdir is changed

Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
Kyle Harding 2021-03-15 10:29:59 -04:00
parent b2ad9f1643
commit 3cff091e3a
No known key found for this signature in database
GPG Key ID: 2AD73EC1FB4865E3
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ There are 3 options to choose from to install balena's CLI:
Recommended also for scripted installation in CI (continuous integration) environments.
* [NPM Installation](#npm-installation): recommended for Node.js developers who may be interested
in integrating the balena CLI in their existing projects or workflow.
* [Docker Installation](#docker-installation): recommended for Linux users that would like to run the
* [Docker Installation](#docker-installation): recommended for users that would like to run the
CLI on edge devices or systems where npm installation may not be an option.
Some specific CLI commands have a few extra installation steps: see section [Additional

View File

@ -36,7 +36,7 @@ RUN CLI_CMDS=$(jq -r '.commands | keys | map(.[0:index(":")]) | unique | join("\
sed -ie "s/CLI_CMDS=\"help\"/CLI_CMDS=\"help\\ ${CLI_CMDS}\"/" init.sh && \
chmod +x init.sh
ENTRYPOINT [ "./init.sh" ]
ENTRYPOINT [ "/usr/src/app/init.sh" ]
CMD [ "help" ]

View File

@ -36,7 +36,7 @@ RUN CLI_CMDS=$(jq -r '.commands | keys | map(.[0:index(":")]) | unique | join("\
sed -ie "s/CLI_CMDS=\"help\"/CLI_CMDS=\"help\\ ${CLI_CMDS}\"/" init.sh && \
chmod +x init.sh
ENTRYPOINT [ "./init.sh" ]
ENTRYPOINT [ "/usr/src/app/init.sh" ]
CMD [ "help" ]