FROM node:16 RUN npm install -g pnpm@7.1.0 && \ npm config set registry https://registry.npm.taobao.org WORKDIR /usr/src/app COPY ./dist ./dist COPY ./template ./template COPY ./patches ./patches COPY ./public ./public COPY .env.production ./ COPY package.json ./ COPY pnpm-lock.yaml ./ RUN pnpm install EXPOSE 3388 CMD [ "pnpm", "start" ]