Fix Docker build (#3798)
This commit is contained in:
parent
96f8f859d2
commit
03807510dc
|
@ -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
|
||||
|
|
|
@ -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 ``<CONTAINER_IP>:8000`` in your browser.
|
||||
|
||||
|
|
Loading…
Reference in New Issue