reputation-api/Dockerfile

14 lines
307 B
Docker

FROM node:20
RUN apt-get -y update && apt-get -y upgrade
RUN npm install --global npm
RUN mkdir -p /opt/reputation-api
WORKDIR /opt/reputation-api
ADD package.json package-lock.json nest-cli.json tsconfig.json tsconfig.build.json ./
ADD src/ ./src/
RUN npm install
RUN npm run build
CMD ["npm", "start"]