Skip to content

Commit

Permalink
chore: bump node docker image version (Layr-Labs#90)
Browse files Browse the repository at this point in the history
* chore: bump node docker image version

The version used was older than the introduction of the AbortController, so trying to run the example in docker would result in the following error:

```
ReferenceError: AbortController is not defined
```

* chore: avoid copying node_modules on docker

---------

Co-authored-by: steven <[email protected]>
  • Loading branch information
MegaRedHand and stevennevins authored Oct 23, 2024
1 parent cd30847 commit 910cb54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
target/

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14
FROM node:22

WORKDIR /app

Expand All @@ -8,4 +8,4 @@ RUN npm install

COPY . .

CMD ["npm", "start"]
CMD ["npm", "start"]

0 comments on commit 910cb54

Please sign in to comment.