This commit is contained in:
Andrew 2023-03-26 17:02:24 +07:00
commit 273aaf31ee
7 changed files with 1048 additions and 0 deletions

14
Dockerfile Normal file
View 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" ]