Skip to content

Commit 314c481

Browse files
committed
fixes
1 parent d93c076 commit 314c481

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.18.1 AS builder
1+
FROM public.ecr.aws/docker/library/node:20 AS builder
22
RUN npm install -g husky
33

44
COPY package.json yarn.lock ./
@@ -9,11 +9,12 @@ COPY . .
99
RUN yarn install
1010
RUN 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
1414
RUN 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
1718
COPY --from=builder /app/lib/ ./lib/
1819

1920
EXPOSE 9464

esbuild.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)