Dockerfile 365 B

1234567891011121314151617
  1. FROM node:gallium-alpine3.15
  2. WORKDIR /usr/src/app
  3. COPY . .
  4. RUN apk add --no-cache make gcc g++ python && \
  5. npm install && \
  6. npm rebuild bcrypt --build-from-source && \
  7. apk del make gcc g++ python
  8. RUN npm config set registry https://registry.npmmirror.com/
  9. RUN npm install -g npm
  10. RUN npm install
  11. EXPOSE $PORT
  12. CMD [ "npm", "run-script","production" ]