mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Update addon_tutorial.markdown
This commit is contained in:
parent
8b0d75a0e1
commit
71a66adcdf
@ -36,7 +36,7 @@ CMD [ "/run.sh" ]
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "Hello world",
|
"name": "Hello world",
|
||||||
"version": "0.1",
|
"version": "1",
|
||||||
"slug": "hello_world",
|
"slug": "hello_world",
|
||||||
"description": "My first real add-on!",
|
"description": "My first real add-on!",
|
||||||
"startup": "before",
|
"startup": "before",
|
||||||
@ -106,7 +106,8 @@ Add to your `Dockerfile` before `RUN`:
|
|||||||
# Install requirements for add-on
|
# Install requirements for add-on
|
||||||
RUN apk add --no-cache python3
|
RUN apk add --no-cache python3
|
||||||
|
|
||||||
# Set directory for Python 3 HTTP server to serve
|
# Python 3 HTTP Server serves the current working dir
|
||||||
|
# So let's set it to our add-on persistent data directory.
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user