feat(docker): add curl to Dockerfile and warn about missing AVX2 support in entrypoint
This commit is contained in:
parent
a03842ca3d
commit
38d304974f
2 changed files with 7 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
||||||
# ───────────────────────────── base ─────────────────────────────
|
# ───────────────────────────── base ─────────────────────────────
|
||||||
# Node 22 alpine + Bun, shared by all three stages.
|
# Node 22 alpine + Bun, shared by all three stages.
|
||||||
FROM node:22-alpine AS base
|
FROM node:22-alpine AS base
|
||||||
RUN apk add --no-cache libc6-compat wget bash
|
RUN apk add --no-cache libc6-compat curl wget bash
|
||||||
# && npm install -g bun@1.3.11 \
|
# && npm install -g bun@1.3.11 \
|
||||||
# && bun --version && node --version
|
# && bun --version && node --version
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,12 @@
|
||||||
# (Coolify per-environment activation gate; dev/stage leave it unset).
|
# (Coolify per-environment activation gate; dev/stage leave it unset).
|
||||||
# Forwards SIGTERM/SIGINT to both children, reaps them, and exits with
|
# Forwards SIGTERM/SIGINT to both children, reaps them, and exits with
|
||||||
# the web server's exit status.
|
# the web server's exit status.
|
||||||
|
#!/bin/sh
|
||||||
|
if ! grep -q 'avx2' /proc/cpuinfo 2>/dev/null; then
|
||||||
|
echo "WARNING: This CPU lacks AVX2 support. Bun may run slower or fail."
|
||||||
|
echo "Consider using a Node-only runtime if performance is critical."
|
||||||
|
fi
|
||||||
|
|
||||||
"$@" &
|
"$@" &
|
||||||
WEB_PID=$!
|
WEB_PID=$!
|
||||||
BOT_PID=""
|
BOT_PID=""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue