Skip to content

Commit 1d824a6

Browse files
committed
Attempt fixes for docker build
1 parent 0bf34a3 commit 1d824a6

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

docs/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ RUN apt-get update
55

66
# Install NodeJS
77
# --------------
8-
RUN curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh
9-
RUN chmod 500 nsolid_setup_deb.sh
10-
RUN ./nsolid_setup_deb.sh 20
11-
RUN apt-get install nodejs -y
8+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh
9+
RUN bash nodesource_setup.sh
10+
RUN apt-get install -y nodejs
1211

1312
# Install Poetry
1413
# --------------
@@ -36,7 +35,7 @@ RUN sphinx-build -v -W -b html source build
3635

3736
# Define Entrypoint
3837
# -----------------
39-
ENV PORT 5000
38+
ENV PORT=5000
4039
ENV REACTPY_DEBUG_MODE=1
4140
ENV REACTPY_CHECK_VDOM_SPEC=0
42-
CMD python main.py
41+
CMD ["python", "main.py"]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ build = [
147147
]
148148
docker_build = [
149149
"hatch run docs:build",
150-
"cd docs && docker build . --file ./docs/Dockerfile --tag reactpy-docs:latest",
150+
"docker build . --file ./docs/Dockerfile --tag reactpy-docs:latest",
151151
]
152152
check = [
153153
"cd docs && poetry install",
154154
"cd docs && poetry run sphinx-build -a -T -W --keep-going -b doctest source build",
155-
"cd docs && docker build . --file Dockerfile",
155+
"docker build . --file ./docs/Dockerfile",
156156
]
157157
serve = [
158158
"cd docs && poetry install",

0 commit comments

Comments
 (0)