17 lines
276 B
Docker
17 lines
276 B
Docker
FROM node:16-bullseye AS base
|
|
|
|
ENV PATH=${PATH}:/node_modules/.bin
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mkdir -p /node_modules \
|
|
&& chown node:node -R /app /node_modules
|
|
|
|
USER node
|
|
|
|
COPY --chown=node:node package.json *yarn* ./
|
|
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
COPY --chown=node:node . .
|