2024-08-12 11:11:17 +08:00
|
|
|
FROM node:18-alpine
|
|
|
|
|
|
|
|
# 安装依赖
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
build-base \
|
|
|
|
cairo-dev \
|
|
|
|
jpeg-dev \
|
|
|
|
pango-dev \
|
|
|
|
giflib-dev \
|
|
|
|
python3
|
2024-08-08 13:29:13 +08:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-08-09 15:08:29 +08:00
|
|
|
COPY package*.json ./
|
2024-08-08 13:29:13 +08:00
|
|
|
|
2024-08-09 15:08:29 +08:00
|
|
|
RUN npm install
|
|
|
|
|
2024-08-08 13:29:13 +08:00
|
|
|
COPY . .
|
|
|
|
|
2024-08-12 10:59:08 +08:00
|
|
|
CMD ["npm", "start"]
|