Skip to content

Commit 7aad755

Browse files
author
steebchen
committed
fix: honor runtime network in indexer image
1 parent 45d4e5f commit 7aad755

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

indexer/.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ node_modules
22
.git
33
.gitignore
44
.env
5-
.env.local
5+
.env.*
6+
.env.local.example
67
npm-debug.log*

indexer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ COPY src ./src
1010
COPY tsconfig.json ./
1111

1212
USER node
13-
CMD ["npm", "run", "start:sepolia"]
13+
CMD ["sh", "-c", "NETWORK=${NETWORK:-sepolia} npm start"]

indexer/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"description": "Indexes Ekubo data",
77
"scripts": {
8-
"start": "NETWORK=mainnet jiti src/index.ts",
8+
"start": "jiti src/index.ts",
9+
"start:mainnet": "NETWORK=mainnet jiti src/index.ts",
910
"start:sepolia": "NETWORK=sepolia jiti src/index.ts",
1011
"test": "vitest"
1112
},

0 commit comments

Comments
 (0)