fix: fix Containerfile refs NOISSUE

This commit is contained in:
2026-03-01 16:55:19 +01:00
parent dde9402426
commit 885cf13117
2 changed files with 6 additions and 8 deletions

View File

@@ -1,9 +1,9 @@
FROM docker.n8n.io/n8nio/n8n FROM n8nio/n8n:latest
USER root USER root
RUN mkdir -p /opt/extra && \\ RUN mkdir -p /opt/extra
npm --prefix /opt/extra install @langchain/ollama@1.0.3 && \\ RUN 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)) && \\ RUN 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 chown -R node:node /opt/extra
USER node USER node

View File

@@ -1,6 +1,4 @@
.ONESHELL: .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 .PHONY: issetup
issetup: issetup:
@@ -45,7 +43,7 @@ release: issetup ## Create a new tag for release.
.PHONY: build .PHONY: build
build: issetup ## Create a new tag for release. 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 # This project has been generated from rochacbruno/python-project-template
# __author__ = 'rochacbruno' # __author__ = 'rochacbruno'