Skip to content

Commit

Permalink
Fix lightfm 'Illegal instruction' error
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaQiaoCh committed Dec 15, 2023
1 parent f34086a commit b36747b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/dockerfile.merlin
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ COPY --chown=1000:1000 --from=dlfw /usr/local/lib/python${PYTHON_VERSION}/dist-p
COPY --chown=1000:1000 --from=dlfw /usr/local/lib/python${PYTHON_VERSION}/dist-packages/numba-*.dist-info /usr/local/lib/python${PYTHON_VERSION}/dist-packages/numba.dist-info/
COPY --chown=1000:1000 --from=dlfw /usr/local/lib/python${PYTHON_VERSION}/dist-packages/cubinlinker-*.dist-info /usr/local/lib/python${PYTHON_VERSION}/dist-packages/cubinlinker.dist-info/

RUN pip install --no-cache-dir jupyterlab notebook pydot testbook numpy==1.22.4
# There 'Illegal instruction' error, add env 'LIGHTFM_NO_CFLAGS' to workaround
ENV LIGHTFM_NO_CFLAGS=1
RUN pip install --no-cache-dir -v --debug lightfm
RUN pip install --no-cache-dir jupyterlab notebook pydot testbook numpy==1.22.4 lightfm

ENV JUPYTER_CONFIG_DIR=/tmp/.jupyter
ENV JUPYTER_DATA_DIR=/tmp/.jupyter
Expand Down

0 comments on commit b36747b

Please sign in to comment.