File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11FROM debian:stable-slim as builder
22ARG CABAL_VERSION=3.6.2.0
33ARG GHC_VERSION=8.10.7
4- ARG NODE_VERSION=1.35.3
54
65WORKDIR /code
76
@@ -69,7 +68,9 @@ RUN git clone https://github.com/bitcoin-core/secp256k1 && \
6968 make && \
7069 make install
7170
71+ FROM builder as cardano-node-build
7272# Install cardano-node
73+ ARG NODE_VERSION=1.35.3
7374ENV NODE_VERSION=${NODE_VERSION}
7475RUN echo "Building tags/${NODE_VERSION}..." \
7576 && echo tags/${NODE_VERSION} > /CARDANO_BRANCH \
@@ -93,9 +94,9 @@ RUN echo "Building tags/${NODE_VERSION}..." \
9394FROM debian:stable-slim as cardano-node
9495ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
9596ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
96- COPY --from=builder /usr/local/lib/ /usr/local/lib/
97- COPY --from=builder /usr/local/include/ /usr/local/include/
98- COPY --from=builder /root/.local/bin/cardano-* /usr/local/bin/
97+ COPY --from=cardano-node-build /usr/local/lib/ /usr/local/lib/
98+ COPY --from=cardano-node-build /usr/local/include/ /usr/local/include/
99+ COPY --from=cardano-node-build /root/.local/bin/cardano-* /usr/local/bin/
99100COPY bin/ /usr/local/bin/
100101COPY config/ /opt/cardano/config/
101102RUN apt-get update -y && \
You can’t perform that action at this time.
0 commit comments