n8n-full-runtime / Dockerfile
PYAE1994's picture
Install nodejs and npm explicitly after apk restore
0fa080d verified
Raw
History Blame Contribute Delete
1.04 kB
FROM alpine:3.23 AS alpine
FROM n8nio/n8n:latest
COPY --from=alpine /sbin/apk /sbin/apk
COPY --from=alpine /lib/ld-musl-*.so.1 /lib/
COPY --from=alpine /lib/libapk.so.* /lib/
COPY --from=alpine /etc/apk /etc/apk
COPY --from=alpine /usr/share/apk /usr/share/apk
COPY --from=alpine /bin/busybox /bin/busybox
USER root
RUN /bin/busybox --install -s \
&& apk add --no-cache \
bash \
curl \
wget \
jq \
git \
nodejs \
npm \
python3 \
py3-pip \
python3-dev \
build-base \
ffmpeg \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& python3 -m pip install --no-cache-dir --break-system-packages \
yt-dlp \
youtube-dl \
requests \
pandas \
numpy \
psycopg2-binary \
&& ln -sf /nodejs/bin/node /usr/local/bin/node
COPY --chown=node:node start.sh /start.sh
RUN chmod +x /start.sh
ENV N8N_PORT=7860 \
N8N_LISTEN_ADDRESS=0.0.0.0 \
PATH=/nodejs/bin:/usr/local/bin:/usr/bin:/bin:/home/node/.local/bin
EXPOSE 7860
USER node
ENTRYPOINT ["/bin/sh", "/start.sh"]