未验证 提交 a82f9302 编写于 作者: G greenhat616

chore: make dockerfile reasonable

上级 e0eec75f
......@@ -3,11 +3,8 @@ FROM node:lts-alpine
WORKDIR /app
COPY . /app
RUN rm -f package-lock.json \
; rm -rf .idea \
; rm -rf node_modules \
; npm config set registry "https://registry.npm.taobao.org/" \
&& npm install
RUN npm config set registry "https://registry.npm.taobao.org/" \
&& npm install --production
EXPOSE 3000
CMD ["node", "app.js"]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册