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 ./