Improvements upon Dockerfile
This commit is contained in:
parent
f7b2d9ca32
commit
7f63fb4a0e
1 changed files with 4 additions and 1 deletions
|
|
@ -4,10 +4,13 @@ EXPOSE 9800
|
||||||
|
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
|
|
||||||
COPY . .
|
COPY ./package.json ./
|
||||||
|
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
CMD ["node", "dist/index.js"]
|
CMD ["node", "dist/index.js"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue