mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
fix local dev container for portal-hive (#1931)
* fix local dev container for portal-hive
This commit is contained in:
parent
78ec80eea0
commit
dc55ee0c87
@ -2,25 +2,26 @@ FROM debian:stable-slim as build
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive TZ="Etc/UTC"
|
||||
ENV NPROC=2
|
||||
ENV NIMFLAGS_COMMON="-d:disableMarchNative --gcc.options.debug:'-g1' --clang.options.debug:'-gline-tables-only'"
|
||||
|
||||
RUN apt update \
|
||||
&& apt install make bash build-essential git -y \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
COPY ../../ /fluffy
|
||||
COPY ../../ /nimbus-eth1
|
||||
|
||||
WORKDIR /fluffy
|
||||
WORKDIR /nimbus-eth1
|
||||
|
||||
RUN --mount=type=cache,target=/fluffy/vendor \
|
||||
make deps -j${NPROC}
|
||||
RUN mv vendor vendor.orig
|
||||
|
||||
RUN --mount=type=cache,target=/fluffy/vendor <<EOF
|
||||
set -e
|
||||
make fluffy -j${NPROC}
|
||||
cp /fluffy/build/fluffy /usr/local/bin/fluffy
|
||||
EOF
|
||||
RUN --mount=type=cache,target=/nimbus-eth1/build --mount=type=cache,target=/nimbus-eth1/vendor \
|
||||
mv vendor.orig vendor && \
|
||||
make -j${NPROC} NIMFLAGS="${NIMFLAGS_COMMON} --parallelBuild:${NPROC}" V=1 update
|
||||
|
||||
RUN --mount=type=cache,target=/nimbus-eth1/build --mount=type=cache,target=/nimbus-eth1/vendor \
|
||||
make -j${NPROC} NIMFLAGS="${NIMFLAGS_COMMON} --parallelBuild:${NPROC}" fluffy && \
|
||||
mv build/fluffy /usr/local/bin/fluffy
|
||||
|
||||
FROM debian:stable-slim as app
|
||||
|
||||
COPY --from=build /usr/local/bin/fluffy /usr/local/bin/fluffy
|
||||
|
@ -1,3 +1,4 @@
|
||||
vendor/
|
||||
build/
|
||||
.git/
|
||||
vendor/*/vendor/*/bin/
|
||||
**/*.o
|
||||
**/*.a
|
||||
|
Loading…
x
Reference in New Issue
Block a user