chore: build-node-base-image

This commit is contained in:
xiaojunnuo
2025-12-29 22:54:19 +08:00
parent f7863bd686
commit 1625989c48
3 changed files with 72 additions and 0 deletions

8
scripts/build/Dockerfile Normal file
View File

@@ -0,0 +1,8 @@
FROM node:22-alpine AS builder
RUN apk add build-base
RUN wget -O - https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2 | tar -xj && \
cd jemalloc-5.3.0 && \
./configure && \
make && \
make install

View File

@@ -0,0 +1,8 @@
version: '3.3' # 指定docker-compose 版本
services: # 要拉起的服务们
node-base:
build:
context: ./
dockerfile: Dockerfile
image: greper/node-base:22-alpine-1