File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,16 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
88RUN apt-get install -yq nodejs build-essential
99RUN 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# ----------------------
2431WORKDIR /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# -----------------
3037ENV PORT 5000
3138ENV REACTPY_DEBUG_MODE=1
3239ENV REACTPY_CHECK_VDOM_SPEC=0
33- CMD pipx run poetry run python main.py
40+ CMD python main.py
You can’t perform that action at this time.
0 commit comments