Dockerfile 246 B

12345678910111213141516171819
  1. FROM node:12.16.1
  2. WORKDIR /usr/src/nuxt-app
  3. COPY package*.json ./
  4. RUN npm set registry https://registry.npm.taobao.org/
  5. RUN npm install
  6. COPY . .
  7. RUN npm run build
  8. EXPOSE 5000
  9. ENV NUXT_PORT=5000
  10. ENV NUXT_HOST=0.0.0.0
  11. CMD [ "npm", "start" ]