Skip to content

Commit

Permalink
build: Building in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcarvalhoj committed Mar 8, 2024
1 parent 7215786 commit aeb05c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20

WORKDIR /src/

COPY package.json package-lock.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 3000

CMD ["npx", "pm2", "start", "dist/index.js", "--no-daemon"]

0 comments on commit aeb05c4

Please sign in to comment.