14 lines
229 B
Text
14 lines
229 B
Text
|
# syntax=docker/dockerfile:1
|
||
|
|
||
|
FROM node:16.15.0-alpine3.15
|
||
|
|
||
|
RUN apk add dumb-init
|
||
|
ENV NODE_ENV=production
|
||
|
USER node
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY --chown=node:node . .
|
||
|
|
||
|
RUN npm ci --only=production
|
||
|
CMD ["dumb-init", "node", "src/index.js"]
|