Dockerfile 221 B

12345678910111213141516171819
  1. FROM node:14-alpine
  2. ENV NODE_ENV=production
  3. ENV HOST 0.0.0.0
  4. RUN mkdir -p /app
  5. COPY . /app
  6. WORKDIR /app
  7. RUN npm config set registry https://registry.npmmirror.com
  8. RUN npm install
  9. EXPOSE 3333
  10. CMD ["npm", "start"]