Improvements upon Dockerfile

This commit is contained in:
Andrew 2023-03-05 19:35:18 +07:00
parent f7b2d9ca32
commit 7f63fb4a0e

View file

@ -4,10 +4,13 @@ EXPOSE 9800
WORKDIR /home/node/app
COPY . .
COPY ./package.json ./
RUN npm install -g pnpm
RUN pnpm install
COPY . .
RUN pnpm run build
CMD ["node", "dist/index.js"]