All done
This commit is contained in:
commit
273aaf31ee
7 changed files with 1048 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM node:16.13.2-alpine3.14
|
||||
|
||||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||||
WORKDIR /home/node/app
|
||||
|
||||
COPY --chown=node:node . .
|
||||
|
||||
RUN corepack enable
|
||||
RUN corepack prepare pnpm@6.28.0 --activate
|
||||
RUN pnpm install
|
||||
|
||||
USER node
|
||||
|
||||
CMD [ "pnpm", "start" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue