Dockerfile 267 B

1234567891011121314151617
  1. FROM node:lts-alpine as base
  2. RUN apk add --no-cache tini
  3. ENV NODE_ENV=production
  4. USER node
  5. WORKDIR /app
  6. COPY package*.json ./
  7. RUN npm install
  8. COPY . .
  9. RUN chown -R appuser:appgroup /app
  10. EXPOSE 8080
  11. FROM base as builder
  12. FROM base as runner
  13. CMD [ "npm", "start" ]