From 03807510dc54d3f732ebd67dc76c531c4b27b8df Mon Sep 17 00:00:00 2001 From: Alex Boyd Date: Thu, 25 Apr 2024 05:23:40 -0600 Subject: [PATCH] Fix Docker build (#3798) --- Dockerfile | 1 + guides/contributing.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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.