ci!: Update docker images for v1 release (#6365)

* ci: Remove debian and rhel7 images

* include libc6-compat in all alpine images

* run all n8n docker containers as the user `node` instead of `root`

* upgrade the default version of npm bundled in all containers

* consolidate docker entrypoints
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-06-07 13:28:06 +02:00
committed by कारतोफ्फेलस्क्रिप्ट™
parent f6366160a4
commit f024d8be5a
12 changed files with 16 additions and 135 deletions

View File

@@ -18,9 +18,10 @@ RUN set -eux; \
find /usr/local/lib/node_modules/n8n -type f -name "*.ts" -o -name "*.js.map" -o -name "*.vue" | xargs rm && \
rm -rf /root/.npm
# Set a custom user to not have n8n run as root
USER root
WORKDIR /data
RUN apk --no-cache add su-exec
COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY docker/images/n8n/docker-entrypoint.sh /
RUN \
mkdir .n8n && \
chown node:node .n8n
USER node
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]