18 lines
290 B
Docker
18 lines
290 B
Docker
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" ]
|