diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..8010cfefe --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +**/target/* +cli-tool +ct_scripts +k8s +docs \ No newline at end of file diff --git a/substrate-node/Dockerfile b/Dockerfile similarity index 88% rename from substrate-node/Dockerfile rename to Dockerfile index 3d72485fa..55fcd7023 100644 --- a/substrate-node/Dockerfile +++ b/Dockerfile @@ -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" @@ -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