fix: 更新 Dockerfile,添加缺失的依赖项安装
This commit is contained in:
1 parent
605c5e1959
commit
ed2b30c347
1 file changed
+6
@@ -3,6 +3,12 @@ FROM node:20-bookworm-slim AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends python3 make g++ \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PYTHON=/usr/bin/python3
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci --no-audit --no-fund
|
||||
|
||||
|
||||
Reference in new issue
Block a user