diff --git a/Containerfile b/Containerfile index 8fef5f8..89d63f2 100644 --- a/Containerfile +++ b/Containerfile @@ -1,9 +1,9 @@ -FROM docker.n8n.io/n8nio/n8n +FROM n8nio/n8n:latest USER root -RUN mkdir -p /opt/extra && \\ - npm --prefix /opt/extra install @langchain/ollama@1.0.3 && \\ - cp /opt/extra/node_modules/@langchain/ollama/dist/utils.* $(dirname $(find /usr/local/lib/ -name utils.js | grep ollama)) && \\ - chown -R node:node /opt/extra +RUN mkdir -p /opt/extra +RUN npm --prefix /opt/extra install @langchain/ollama@1.0.3 +RUN cp /opt/extra/node_modules/@langchain/ollama/dist/utils.* $(dirname $(find /usr/local/lib/ -name utils.js | grep ollama)) +RUN chown -R node:node /opt/extra USER node \ No newline at end of file diff --git a/Makefile b/Makefile index ccdfd60..f7e684a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ .ONESHELL: -ENV_PREFIX=$(shell python -c "if __import__('pathlib').Path('.venv/bin/pip').exists(): print('.venv/bin/')") -USING_POETRY=$(shell grep "tool.poetry" pyproject.toml && echo "yes") .PHONY: issetup issetup: @@ -45,7 +43,7 @@ release: issetup ## Create a new tag for release. .PHONY: build build: issetup ## Create a new tag for release. - @docker build -t n8n_ollama:$(cat n8n_ollama/VERSION) -f Containerfile . + @docker build -t n8n_ollama:$$(cat n8n_ollama/VERSION) -f Containerfile . # This project has been generated from rochacbruno/python-project-template # __author__ = 'rochacbruno'