Skip to content

Commit

Permalink
Dockerfile: Avoid rebuilding js in python step
Browse files Browse the repository at this point in the history
Set `TOX_ENV` to avoid re-running the javascript
generation step that has already been handled by
the nodejs `jsBuilder` step.

This causes the `NpmBuildCommand` inside
`setup.py` to abort early.

This fixes the Docker build as previously it would
fail to compile javascript in a pure-python docker
container.

Fix #759
  • Loading branch information
alexandru committed Jan 15, 2022
1 parent 86fbf37 commit 923a6b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN make init js
# Second, create virtualenv
FROM python:3.8-buster AS venvBuilder
WORKDIR /src/
ENV TOX_ENV=1
COPY --from=jsBuilder /src .
RUN python3 -m venv /isso \
&& . /isso/bin/activate \
Expand Down

0 comments on commit 923a6b2

Please sign in to comment.