File tree 1 file changed +13
-6
lines changed
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 -
8
8
RUN apt-get install -yq nodejs build-essential
9
9
RUN npm install -g
[email protected]
10
10
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
14
21
15
22
# Copy Files
16
23
# ----------
@@ -22,12 +29,12 @@ COPY branding ./branding
22
29
# Install and Build Docs
23
30
# ----------------------
24
31
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
27
34
28
35
# Define Entrypoint
29
36
# -----------------
30
37
ENV PORT 5000
31
38
ENV REACTPY_DEBUG_MODE=1
32
39
ENV 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