Skip to content

Commit

Permalink
Move to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
gregbell26 committed Jul 3, 2024
1 parent d52b75a commit 2ef4afa
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 337,759 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.idea
node_modules
.idea
dist
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:20-alpine AS builder

ADD package.json /app/package.json
ADD package-lock.json /app/package-lock.json

WORKDIR app

RUN npm i

ADD . /app

RUN npm run bundle

FROM ghcr.io/puppeteer/puppeteer:16.1.0 AS dist

COPY --from=builder /app/dist /dist

ENTRYPOINT ["node", "/dist/index.js"]
Loading

0 comments on commit 2ef4afa

Please sign in to comment.