readme updates

This commit is contained in:
root
2023-07-30 14:11:22 -05:00
parent 8dffffc19c
commit abc06af773

View File

@@ -79,21 +79,18 @@ context:
## Running with Docker ## Running with Docker
Needs to have a `requirements.txt` file in the same directory as the `Dockerfile` Clone repo into `apps/room_control` of your appdaemon config folder.
```dockerfile ```shell
FROM python:3.10 ./appdaemon_config
├── apps
# install order matters because of some weird dependency stuff with websocket-client │ ├── room_control
# install appdaemon first because it's versioning is more restrictive │ └── rooms
RUN pip install git+https://github.com/AppDaemon/appdaemon@dev └── docker-compose.yml
ENV CONF=/conf
RUN mkdir $CONF
COPY ./requirements.txt ${CONF}
RUN --mount=type=cache,target=/root/.cache/pip pip install -r ${CONF}/requirements.txt
``` ```
Example `docker-compose.yml`:
```yaml ```yaml
version: "3.8" version: "3.8"
services: services:
@@ -108,7 +105,6 @@ services:
- 5050:5050 - 5050:5050
restart: unless-stopped restart: unless-stopped
volumes: volumes:
config: config:
driver: local driver: local