Skip to content

Commit

Permalink
fix: c-kzg install
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Jun 24, 2024
1 parent aaddfc2 commit cbe33cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
FROM --platform=${BUILDPLATFORM:-amd64} node:22-alpine as build_src
ARG COMMIT
WORKDIR /usr/app
RUN apk update && apk add --no-cache g++ make python3 py3-setuptools && rm -rf /var/cache/apk/*
RUN apk update && apk add --no-cache git g++ make python3 py3-setuptools && rm -rf /var/cache/apk/*

COPY . .

RUN chmod +x ./scripts/build_c_kzg.sh

RUN yarn install --non-interactive --frozen-lockfile && \
yarn build && \
yarn install --non-interactive --frozen-lockfile --production
Expand All @@ -25,7 +23,7 @@ RUN cd packages/cli && GIT_COMMIT=${COMMIT} yarn write-git-data
# Note: This step is redundant for the host arch
FROM node:22-alpine as build_deps
WORKDIR /usr/app
RUN apk update && apk add --no-cache g++ make python3 py3-setuptools && rm -rf /var/cache/apk/*
RUN apk update && apk add --no-cache git g++ make python3 py3-setuptools && rm -rf /var/cache/apk/*

COPY --from=build_src /usr/app .

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"packages/*"
],
"scripts": {
"postinstall": "./scripts/build_c_kzg.sh",
"clean": "rm -rf ./packages/*/lib ./packages/*/*.tsbuildinfo",
"clean:nm": "rm -rf ./packages/*/node_modules ./node_modules",
"build": "lerna run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"@lodestar/utils": "^1.19.0",
"@lodestar/validator": "^1.19.0",
"@multiformats/multiaddr": "^12.1.3",
"c-kzg": "matthewkeil/c-kzg-4844#3f4a7a44d6b8cdf1fac3dd777159d130d6e1cd03",
"c-kzg": "matthewkeil/c-kzg-4844#202e667ed84b39e82a5a407a2d27e733cb1dcdb6",
"datastore-core": "^9.1.1",
"datastore-level": "^10.1.1",
"deepmerge": "^4.3.1",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4494,9 +4494,9 @@ [email protected]:
resolved "https://registry.yarnpkg.com/byte-size/-/byte-size-8.1.1.tgz#3424608c62d59de5bfda05d31e0313c6174842ae"
integrity sha512-tUkzZWK0M/qdoLEqikxBWe4kumyuwjl3HO6zHTr4yEI23EojPtLYXdG1+AQY7MN0cGyNDvEaJ8wiYQm6P2bPxg==

c-kzg@matthewkeil/c-kzg-4844#3f4a7a44d6b8cdf1fac3dd777159d130d6e1cd03:
c-kzg@matthewkeil/c-kzg-4844#202e667ed84b39e82a5a407a2d27e733cb1dcdb6:
version "0.0.0"
resolved "https://codeload.github.com/matthewkeil/c-kzg-4844/tar.gz/3f4a7a44d6b8cdf1fac3dd777159d130d6e1cd03"
resolved "https://codeload.github.com/matthewkeil/c-kzg-4844/tar.gz/202e667ed84b39e82a5a407a2d27e733cb1dcdb6"

cac@^6.7.14:
version "6.7.14"
Expand Down

0 comments on commit cbe33cb

Please sign in to comment.