Adjust dependencies
Some checks failed
Build Pipeline for de.captica.n8n / Publish Docker (push) Failing after 2m5s

This commit is contained in:
Marc Boehm
2025-05-20 16:51:35 +02:00
parent 2016e6a5f7
commit 4c1c01ed5d

View File

@@ -5,8 +5,8 @@ FROM node:22-slim
# Update everything and install needed dependencies # Update everything and install needed dependencies
RUN apt-get update -y && \ RUN apt-get update -y && \
apt-get upgrade -y && \ apt-get upgrade -y && \
apt-get install -y -q graphicsmagick tzdata build-dependencies python build-base ca-certificates && \ apt-get install -y -q graphicsmagick tzdata python3 ca-certificates build-essential && \
useradd -r -U -d /opt/captica/${NAME_APPLICATION} -c "captica Service User" -m captica useradd -r -U -M -c "captica Service User" -m captica
# # Set a custom user to not have n8n run as root # # Set a custom user to not have n8n run as root
USER captica USER captica
@@ -16,9 +16,7 @@ USER captica
RUN N8N_VERSION=$(curl -s https://api.github.com/repos/n8n-io/n8n/releases/latest | jq -r '.tag_name' | sed 's/^v//') && \ RUN N8N_VERSION=$(curl -s https://api.github.com/repos/n8n-io/n8n/releases/latest | jq -r '.tag_name' | sed 's/^v//') && \
echo "Latest n8n version: ${N8N_VERSION}" && \ echo "Latest n8n version: ${N8N_VERSION}" && \
npm_config_user=root npm install -g {N8N_VERSION} && \ npm_config_user=root npm install -g {N8N_VERSION} && \
apt-get remove build-dependencies build-base && \ apt-get clean all
apt-get autoremove -y && \
apt-get autoclean -y
WORKDIR /data WORKDIR /data