docker/Dockerfile

21 lines
240 B
Docker

FROM node:18-alpine
# 安装依赖
RUN apk add --no-cache \
build-base \
cairo-dev \
jpeg-dev \
pango-dev \
giflib-dev \
python3
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
CMD ["npm", "start"]