1234567891011121314151617 |
- FROM node:lts-alpine as base
- RUN apk add --no-cache tini
- ENV NODE_ENV=production
- USER node
- WORKDIR /app
- COPY package*.json ./
- RUN npm install
- COPY . .
- RUN chown -R appuser:appgroup /app
- EXPOSE 8080
- FROM base as builder
- FROM base as runner
- CMD [ "npm", "start" ]
|