Skip to content

Commit 0470843

Browse files
committed
fix: build size and performance
1 parent 73b37b7 commit 0470843

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

services/bots/Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ FROM --platform=arm64 node:16-bookworm
22

33
WORKDIR /usr/src/app
44

5-
RUN npm install pm2 -g
5+
RUN npm install -g pm2
66

7-
USER node
8-
9-
COPY --chown=node:node "./node_modules" "./node_modules"
107
COPY --chown=node:node "./contracts" "./contracts"
118
COPY --chown=node:node "./eslint-config" "./eslint-config"
129
COPY --chown=node:node "./prettier-config" "./prettier-config"
@@ -16,11 +13,12 @@ COPY --chown=node:node [ ".yarnrc.yml", ".nvmrc", ".eslintignore", "package.json
1613

1714
RUN yarn set version 3.3.1 && \
1815
yarn --version && \
19-
node --version
16+
node --version && \
17+
cd contracts && \
18+
yarn workspaces focus && \
19+
yarn build && \
20+
chown -R node:node .
2021

22+
USER node
2123
WORKDIR /usr/src/app/contracts
22-
23-
RUN yarn workspaces focus && \
24-
yarn build
25-
2624
ENTRYPOINT [ "yarn" ]

services/bots/ecosystem.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
interpreter: "bash",
1414
script: "yarn",
1515
args: "bot:keeper --network arbitrumGoerli",
16-
restart_delay: 10000,
16+
restart_delay: 600000,
1717
autorestart: true,
1818
},
1919
{

0 commit comments

Comments
 (0)