Skip to content

Commit b33a577

Browse files
committed
get docs to deploy correctly
1 parent e13f26e commit b33a577

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

docs/Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ WORKDIR /app/
66
# --------------
77
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
88
RUN apt-get install -yq nodejs build-essential
9-
RUN npm install -g npm@latest
9+
RUN npm install -g npm@7.13.0
1010

11-
# Upgrad PIP
12-
# ----------
11+
# Create Python Venv
12+
# ------------------
13+
ENV VIRTUAL_ENV=/opt/venv
14+
RUN python3 -m venv $VIRTUAL_ENV
15+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
1316
RUN pip install --upgrade pip
1417

1518
# Install IDOM

noxfile.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,14 @@ def docs(session: Session) -> None:
5959
@nox.session
6060
def docs_in_docker(session: Session) -> None:
6161
session.run(
62-
"docker", "build", ".", "--file", "docs/Dockerfile", "--tag", "idom-docs:latest"
62+
"docker",
63+
"build",
64+
".",
65+
"--file",
66+
"docs/Dockerfile",
67+
"--tag",
68+
"idom-docs:latest",
69+
external=True,
6370
)
6471
session.run(
6572
"docker",
@@ -71,6 +78,7 @@ def docs_in_docker(session: Session) -> None:
7178
"DEBUG=1",
7279
"--rm",
7380
"idom-docs:latest",
81+
external=True,
7482
)
7583

7684

requirements/pkg-extras.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# extra=stable,sanic
22
sanic <19.12.0
3-
sanic-cors >=0.9.9
3+
sanic-cors
44

55
# extra=fastapi
66
fastapi >=0.63.0

0 commit comments

Comments
 (0)