Skip to content

Commit

Permalink
build: optimize images
Browse files Browse the repository at this point in the history
  • Loading branch information
filo87 committed Jan 29, 2025
1 parent 31d422b commit 4052cc2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.env
.envrc
.git
.gitignore
.yarn
.yarnrc
.yarnrc.yml
*.log
*.log.*
*.log.*.*
subquery-multichain.yaml
project-*.yaml
dist
node_modules
commitlint.config.js
.nvmrc
.prettierrc
6 changes: 2 additions & 4 deletions Dockerfile.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ RUN chown node:node /app
USER node
COPY --chown=node:node . .

RUN yarn install --frozen-lockfile
RUN CHAIN_ID="centrifuge" yarn projectgen
RUN yarn codegen
RUN yarn build
RUN yarn install --frozen-lockfile --no-cache
RUN CHAIN_ID="centrifuge" yarn projectgen && yarn codegen && yarn build


FROM onfinality/subql-node:latest
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile.evm
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ RUN chown node:node /app
USER node
COPY --chown=node:node . .

RUN yarn install --frozen-lockfile
RUN CHAIN_ID="centrifuge" yarn projectgen
RUN yarn codegen
RUN yarn build
RUN yarn install --frozen-lockfile --no-cache
RUN CHAIN_ID="centrifuge" yarn projectgen && yarn codegen && yarn build


FROM onfinality/subql-node-ethereum:latest
Expand Down

0 comments on commit 4052cc2

Please sign in to comment.