dockerfile testing time
This commit is contained in:
parent
9b58091459
commit
8da480329b
1 changed files with 8 additions and 0 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM node:lts-alpine3.17
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY ["package.json", "pnpm-lock.yaml", "dist/*", "./"]
|
||||||
|
RUN pnpm i
|
||||||
|
EXPOSE 4321
|
||||||
|
RUN chown -R node /usr/src/app
|
||||||
|
USER node
|
||||||
|
CMD ["pnpm", "start"]
|
Loading…
Reference in a new issue