|
|
|
FROM node:slim as builder |
|
|
|
|
|
WORKDIR /home/node/app |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y --no-install-recommends \ |
|
python3 python3-pip rclone fuse \ |
|
wget curl unzip vim git procps lsof net-tools \ |
|
ca-certificates openssl gnupg && \ |
|
apt-get clean && \ |
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN npm install n8n -g |
|
|
|
|
|
FROM node:slim |
|
|
|
|
|
COPY --from=builder /usr/bin/rclone /usr/bin/rclone |
|
COPY --from=builder /usr/bin/fusermount /usr/bin/fusermount |
|
COPY --from=builder /home/node/app /home/node/app |
|
|
|
|
|
WORKDIR /home/node/app |
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh |
|
RUN chmod +x /entrypoint.sh |
|
|
|
|
|
USER node |
|
|
|
|
|
ENV N8N_HOST=0.0.0.0 |
|
ENV N8N_PORT=5678 |
|
ENV N8N_PROTOCOL=https |
|
ENV WEBHOOK_URL=https://hijnu-n8n.hf.space/ |
|
ENV GENERIC_TIMEZONE=Asia/Shanghai |
|
|
|
|
|
EXPOSE 5678 |
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |