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 1
1
FROM debian:stable-slim as builder
2
2
ARG CABAL_VERSION=3.6.2.0
3
3
ARG GHC_VERSION=8.10.7
4
- ARG NODE_VERSION=1.35.3
5
4
6
5
WORKDIR /code
7
6
@@ -69,7 +68,9 @@ RUN git clone https://github.com/bitcoin-core/secp256k1 && \
69
68
make && \
70
69
make install
71
70
71
+ FROM builder as cardano-node-build
72
72
# Install cardano-node
73
+ ARG NODE_VERSION=1.35.3
73
74
ENV NODE_VERSION=${NODE_VERSION}
74
75
RUN echo "Building tags/${NODE_VERSION}..." \
75
76
&& echo tags/${NODE_VERSION} > /CARDANO_BRANCH \
@@ -93,9 +94,9 @@ RUN echo "Building tags/${NODE_VERSION}..." \
93
94
FROM debian:stable-slim as cardano-node
94
95
ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
95
96
ENV 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/
99
100
COPY bin/ /usr/local/bin/
100
101
COPY config/ /opt/cardano/config/
101
102
RUN apt-get update -y && \
You can’t perform that action at this time.
0 commit comments