Skip to content

Commit

Permalink
fix(ci): make lotus-devnet image(for devnet checks) slimmer (#3970)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Feb 29, 2024
1 parent 87e5367 commit 323e720
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/devnet/lotus.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN git clone --depth 1 --branch v1.25.2 https://github.com/filecoin-project/lot

RUN CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__" \
CGO_CFLAGS="-D__BLST_PORTABLE__" \
make 2k
make 2k && strip lotus*

FROM ubuntu:22.04

Expand All @@ -33,4 +33,7 @@ COPY --from=lotus-builder /lotus/lotus /lotus/lotus-miner /lotus/lotus-seed /usr

WORKDIR /lotus

# Basic verification of dynamically linked dependencies
RUN lotus -v

CMD ["/bin/bash"]

0 comments on commit 323e720

Please sign in to comment.