Skip to content

Commit

Permalink
feat: rework Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVerstraete committed Apr 8, 2022
1 parent f7a0179 commit beebb4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/target/*
cli-tool
ct_scripts
k8s
docs
6 changes: 4 additions & 2 deletions substrate-node/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
ARG PROFILE=release
COPY . /tfchain

WORKDIR /tfchain/substrate-node

RUN export PATH="$PATH:$HOME/.cargo/bin" && \
cargo build "--$PROFILE"

Expand All @@ -37,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
Expand Down

0 comments on commit beebb4d

Please sign in to comment.