-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a99543
commit 7203e6b
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:20.18.1 AS builder | ||
FROM public.ecr.aws/docker/library/node:20 AS builder | ||
RUN npm install -g husky | ||
|
||
COPY package.json yarn.lock ./ | ||
|
@@ -9,11 +9,12 @@ COPY . . | |
RUN yarn install | ||
RUN node esbuild.config.js | ||
|
||
FROM node:20.18.1-alpine | ||
FROM public.ecr.aws/docker/library/node:20.18.1-alpine | ||
# 'bigint-buffer' native lib for performance | ||
RUN apk add python3 make g++ --virtual .build &&\ | ||
npm install -C /lib bigint-buffer &&\ | ||
apk del .build | ||
npm install -C /lib bigint-buffer @triton-one/[email protected] &&\ | ||
apk del .build &&\ | ||
rm -rf /root/.cache/ /root/.npm /usr/local/lib/node_modules | ||
COPY --from=builder /app/lib/ ./lib/ | ||
|
||
EXPOSE 9464 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters