mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-06 22:33:59 -05:00
**Motivation** - Support the latest LTS **Description** - support node 24 --------- Co-authored-by: Nico Flaig <nflaig@protonmail.com>
20 lines
605 B
Docker
20 lines
605 B
Docker
# Dockerfile.dev is a stripped down version of Dockerfile that is used for development purposes.
|
|
# It minimizes number of installs and builds to speed up the development process.
|
|
# Run this on local host only.
|
|
# Generated image is larger than production image. Do not use this for production.
|
|
|
|
FROM --platform=${BUILDPLATFORM:-amd64} node:24 AS build_dev
|
|
ARG COMMIT
|
|
|
|
WORKDIR /usr/app
|
|
|
|
COPY . .
|
|
|
|
RUN yarn install --non-interactive && yarn build
|
|
|
|
RUN cd packages/cli && GIT_COMMIT=${COMMIT} yarn write-git-data
|
|
|
|
ENV NODE_OPTIONS=--max-old-space-size=8192
|
|
|
|
ENTRYPOINT ["node", "./packages/cli/bin/lodestar"]
|