Dockerfile 215 B

123456789101112
  1. FROM node:gallium-alpine3.15
  2. WORKDIR /usr/src/app
  3. COPY . .
  4. RUN npm config set registry https://registry.npmmirror.com/
  5. RUN npm install -g npm
  6. RUN npm install
  7. EXPOSE $PORT
  8. CMD [ "npm", "run-script","production" ]