From 7e416a00a161c17cf3e9f90e3af69ece8cecd61c Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 17 May 2025 21:13:13 +0800 Subject: [PATCH] . --- Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c6e0e9f..4d75181 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,18 @@ # syntax=docker/dockerfile:1.6 #============================================ storage-api ====================================================== # Base stage for shared environment setup -FROM node:20-alpine3.20 as s3base -RUN apk add --no-cache g++ make python3 +FROM ubuntu:22.04 as s3base + +ENV DEBIAN_FRONTEND=noninteractive + +# 安装 node18 + 构建依赖 + xattr +RUN apt-get update && apt-get install -y \ + curl ca-certificates gnupg lsb-release \ + g++ make python3 libxattr1 \ + && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ + && apt-get install -y nodejs \ + && npm install -g npm@10.8.2 pnpm@10.9.0 + WORKDIR /app COPY storage_v1.19.1/package.json storage_v1.19.1/package-lock.json ./