test fix
All checks were successful
Build, Push and Redeploy Docker Image / build-and-push (push) Successful in 5m10s

This commit is contained in:
2026-01-26 22:08:05 +07:00
parent f7039badd8
commit 9908a5b2e0
2 changed files with 9 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ RUN apk add --no-cache \
gnupg \
netcat-openbsd \
npm \
su-exec \
# su-exec \
&& npm install -g n8n@${N8N_VERSION} \
&& rm -rf /var/cache/apk/*
@@ -28,7 +28,7 @@ RUN chmod +x /start.sh
# Настройка redsocks.conf с использованием аргумента
RUN echo "base { log_debug = off; log_info = on; log = stderr; daemon = off; redirector = iptables; } redsocks { local_ip = 127.0.0.1; local_port = 12345; ip = ${SOCKS_IP}; port = 1080; type = socks5; }" > /etc/redsocks.conf
# USER node
USER node
WORKDIR /home/node
EXPOSE 5678

View File

@@ -21,12 +21,13 @@ iptables -t nat -A OUTPUT -p tcp -d 10.0.0.0/8 -j RETURN 2>/dev/null || true
iptables -t nat -A OUTPUT -p tcp -d 172.16.0.0/12 -j RETURN 2>/dev/null || true
iptables -t nat -A OUTPUT -p tcp -j REDIRECT --to-ports 12345 2>/dev/null || true
N8N_BIN="/usr/local/bin/n8n"
# N8N_BIN="/usr/local/bin/n8n"
if [ ! -x "$N8N_BIN" ]; then
echo "n8n binary not found at $N8N_BIN"
exit 1
fi
# if [ ! -x "$N8N_BIN" ]; then
# echo "n8n binary not found at $N8N_BIN"
# exit 1
# fi
# Start n8n
exec su-exec node "$N8N_BIN" start
# exec su-exec node "$N8N_BIN" start
exec su -c "n8n start" node