File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1- FROM node:20.18.1 AS builder
1+ FROM public.ecr.aws/docker/library/ node:20 AS builder
22RUN npm install -g husky
33
44COPY package.json yarn.lock ./
@@ -9,11 +9,12 @@ COPY . .
99RUN yarn install
1010RUN node esbuild.config.js
1111
12- FROM node:20.18.1-alpine
12+ FROM public.ecr.aws/docker/library/ node:20.18.1-alpine
1313# 'bigint-buffer' native lib for performance
1414RUN apk add python3 make g++ --virtual .build &&\
15- npm install -C /lib bigint-buffer &&\
16- apk del .build
15+ npm install -C /lib bigint-buffer @triton-one/
[email protected] &&\
16+ apk del .build &&\
17+ rm -rf /root/.cache/ /root/.npm /usr/local/lib/node_modules
1718COPY --from=builder /app/lib/ ./lib/
1819
1920EXPOSE 9464
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ const commonConfig = {
99 // minify: true, makes messy debug/error output
1010 treeShaking : true ,
1111 legalComments : 'none' ,
12- mainFields : [ 'module' , 'main' ] ,
1312 metafile : true ,
1413 format : 'cjs' ,
1514 external : [
16- 'bigint-buffer'
15+ 'bigint-buffer' ,
16+ '@triton-one/yellowstone-grpc'
1717 ]
1818} ;
1919
2020( async ( ) => {
21- let entryPoints = await glob ( "./src/*.ts" , { filesOnly : true } ) ;
21+ let entryPoints = await glob ( "./src/**/* .ts" ) ;
2222 await esbuild . build ( {
2323 ...commonConfig ,
2424 entryPoints,
You can’t perform that action at this time.
0 commit comments