mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 18:26:56 +00:00
Update addon_config.markdown
This commit is contained in:
parent
c1cd6e65d9
commit
2135711757
@ -33,12 +33,11 @@ echo '{ "target": "beer" }' | jq -r ".target"
|
|||||||
|
|
||||||
## {% linkable_title Add-on Docker file %}
|
## {% linkable_title Add-on Docker file %}
|
||||||
|
|
||||||
All add-ons are based on Alpine Linux 3.5. Hass.io will automatically substitute the right base image based on the machine architecture. The Dockerfile is also required to have a VERSION environment variable which we will substitute with the version of the add-on.
|
All add-ons are based on Alpine Linux 3.5. Hass.io will automatically substitute the right base image based on the machine architecture.
|
||||||
|
|
||||||
```
|
```
|
||||||
FROM %%BASE_IMAGE%%
|
FROM %%BASE_IMAGE%%
|
||||||
|
|
||||||
ENV VERSION %%VERSION%%
|
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
# Install requirements for add-on
|
# Install requirements for add-on
|
||||||
@ -51,6 +50,11 @@ RUN chmod a+x /run.sh
|
|||||||
CMD [ "/run.sh" ]
|
CMD [ "/run.sh" ]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you don't use local build on device or our build script, make sure that the Dockerfile have also a set of labels include:
|
||||||
|
```
|
||||||
|
LABEL io.hass.version="VERSION" io.hass.type="addon" io.hass.arch="armhf|aarch64|i386|amd64"
|
||||||
|
```
|
||||||
|
|
||||||
## {% linkable_title Add-on config %}
|
## {% linkable_title Add-on config %}
|
||||||
|
|
||||||
The config for an add-on is stored in `config.json`.
|
The config for an add-on is stored in `config.json`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user