midou36o.github.io/Dockerfile

19 lines
196 B
Docker
Raw Normal View History

2023-12-30 15:23:24 +05:30
FROM node:21-alpine
WORKDIR /usr/src/app
COPY package.json ./
2023-12-30 19:00:07 +05:30
#COPY pnpm-lock.yaml ./
RUN npm install -g pnpm
RUN pnpm i
COPY . .
RUN pnpm build
EXPOSE 3000
CMD ["node", "build/index.js"]