From 38d304974f3085228d4d6244cd5bfe9dcc4cc755 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Sat, 15 Aug 2026 15:24:22 -0400 Subject: [PATCH] feat(docker): add curl to Dockerfile and warn about missing AVX2 support in entrypoint --- Dockerfile | 2 +- docker-entrypoint.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d4688bc..2295f4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ # ───────────────────────────── base ───────────────────────────── # Node 22 alpine + Bun, shared by all three stages. 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 \ # && bun --version && node --version diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index cc04dda..82e0ac8 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -5,6 +5,12 @@ # (Coolify per-environment activation gate; dev/stage leave it unset). # Forwards SIGTERM/SIGINT to both children, reaps them, and exits with # 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=$! BOT_PID=""