Skip to content

Commit e950966

Browse files
authored
fix poetry docs (#1003)
1 parent ac58266 commit e950966

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

docs/Dockerfile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
88
RUN apt-get install -yq nodejs build-essential
99
RUN npm install -g [email protected]
1010

11-
# Install Pipx
12-
# ------------
13-
RUN pip install pipx
11+
# Install Poetry
12+
# --------------
13+
RUN pip install poetry
14+
15+
# Create/Activate Python Venv
16+
# ---------------------------
17+
ENV VIRTUAL_ENV=/opt/venv
18+
RUN python3 -m venv $VIRTUAL_ENV
19+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
20+
RUN pip install --upgrade pip
1421

1522
# Copy Files
1623
# ----------
@@ -22,12 +29,12 @@ COPY branding ./branding
2229
# Install and Build Docs
2330
# ----------------------
2431
WORKDIR /app/docs
25-
RUN pipx run poetry install
26-
RUN pipx run poetry run sphinx-build -v -W -b html source build
32+
RUN poetry install
33+
RUN sphinx-build -v -W -b html source build
2734

2835
# Define Entrypoint
2936
# -----------------
3037
ENV PORT 5000
3138
ENV REACTPY_DEBUG_MODE=1
3239
ENV REACTPY_CHECK_VDOM_SPEC=0
33-
CMD pipx run poetry run python main.py
40+
CMD python main.py

0 commit comments

Comments
 (0)