FROM node:12.18.4-alpine3.9
ENV HOST 0.0.0.0
RUN mkdir -p /app
COPY . /app
WORKDIR /app
EXPOSE 3000
RUN npm config set registry http://registry.npm.taobao.org
RUN npm install
RUN npm run build
RUN npm cache clean --force
CMD ["npm", "run","start"]
FROM node:12.18.4-alpine3.9
ENV HOST 0.0.0.0
RUN mkdir -p /app
COPY . /app
WORKDIR /app
EXPOSE 3000
RUN npm config set registry http://registry.npm.taobao.org
RUN npm install
RUN npm run build
RUN npm cache clean --force
CMD ["npm", "run","start"]