diff --git a/Dockerfile b/Dockerfile index cd58e282f..a99ffa478 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ RUN useradd -ms /bin/bash esphome USER esphome WORKDIR /workspaces/esphome-docs +ENV PATH="${PATH}:/home/esphome/.local/bin" COPY requirements.txt ./ RUN pip3 install --no-cache-dir --no-binary :all: -r requirements.txt diff --git a/guides/contributing.rst b/guides/contributing.rst index e1b37be32..fc38f75b1 100644 --- a/guides/contributing.rst +++ b/guides/contributing.rst @@ -98,7 +98,7 @@ Build .. code-block:: bash - docker run --rm -v "${PWD}/":/data/esphomedocs -p 8000:8000 -it ghcr.io/esphome/esphome-docs + docker run --rm -v "${PWD}/":/workspaces/esphome-docs -p 8000:8000 -it ghcr.io/esphome/esphome-docs With ``PWD`` referring to the root of the ``esphome-docs`` git repository. Then go to ``:8000`` in your browser.