FROM node:14 WORKDIR /app ENV TZ Asia/Shanghai RUN npm config set disturl https://npm.taobao.org/dist RUN npm config set registry https://registry.npm.taobao.org COPY package.json ./ COPY package-lock.json ./ COPY server.js ./ RUN npm install EXPOSE 18888 CMD [ "node", "server.js" ]