Dockerfile 248 B

12345678910111213
  1. FROM node:12.13.0-alpine
  2. RUN apk add --no-cache git
  3. COPY package.json package-lock.json /app/
  4. WORKDIR /app
  5. RUN npm install
  6. COPY . /app
  7. RUN mkdir /app/node_modules/.cache && chown nobody /app/node_modules/.cache
  8. USER nobody
  9. CMD ["npm", "start"]