Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix dockerfile properly
Browse files Browse the repository at this point in the history
DylanVerstraete committed Apr 6, 2022
1 parent 5fd225c commit a42ea91
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/target
**/target/*
cli-tool
ct_scripts
k8s
k8s
docs
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -22,8 +22,9 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \


ARG PROFILE=release
COPY substrate-node/ /tfchain
COPY pallets/ /tfchain
COPY . /tfchain

WORKDIR /tfchain/substrate-node

RUN export PATH="$PATH:$HOME/.cargo/bin" && \
cargo build "--$PROFILE"
@@ -38,8 +39,8 @@ ARG PROFILE=release
RUN rm -rf /usr/share/* && \
mkdir -p /tfchain/.local

COPY --from=builder /tfchain/target/$PROFILE/tfchain /usr/local/bin
COPY chainspecs /etc/chainspecs/
COPY --from=builder /tfchain/substrate-node/target/$PROFILE/tfchain /usr/local/bin
COPY --from=builder /tfchain/substrate-node/chainspecs /etc/chainspecs/


# checks

0 comments on commit a42ea91

Please sign in to comment.