build: add Docker
This commit is contained in:
commit
96167de713
4 changed files with 41 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM node:16-bullseye AS base
|
||||
|
||||
ENV PATH=${PATH}:/app/node_modules/.bin
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN chown node:node -R /app
|
||||
|
||||
USER node
|
||||
|
||||
COPY --chown=node:node package.* ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY --chown=node:node . .
|
Loading…
Add table
Add a link
Reference in a new issue