n8n: use builder container, moar packages

This commit is contained in:
Starbeamrainbowlabs 2022-11-05 20:34:07 +00:00
parent a6f2bd379c
commit d45ecc8e84
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -1,9 +1,16 @@
ARG REPO_LOCATION ARG REPO_LOCATION
FROM ${REPO_LOCATION}minideb-node FROM ${REPO_LOCATION}minideb-node as builder
RUN install_packages sqlite3 python3-minimal libpython3-stdlib RUN install_packages sqlite3 python3-minimal libpython3-stdlib make gcc build-essential
RUN npm install -g n8n RUN mkdir /app
WORKDIR /app
RUN npm install n8n
FROM ${REPO_LOCATION}minideb_node
RUN install_packages sqlite3
COPY /app /app
USER 10500:10500 USER 10500:10500
@ -11,4 +18,4 @@ VOLUME /srv
# Tell n8n to store stuff in /srv # Tell n8n to store stuff in /srv
ENV HOME=/srv ENV HOME=/srv
ENTRYPOINT [ "/usr/local/bin/n8n" ] ENTRYPOINT [ "/app/node_modules/.bin/n8n" ]