This commit is contained in:
hailin 2025-05-17 21:13:13 +08:00
parent d3d04ae0e1
commit 7e416a00a1
1 changed files with 12 additions and 2 deletions

View File

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