Skip to content

Commit a42ea91

Browse files
fix dockerfile properly
1 parent 5fd225c commit a42ea91

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.dockerignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
**/target
1+
**/target/*
22
cli-tool
33
ct_scripts
4-
k8s
4+
k8s
5+
docs

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
2222

2323

2424
ARG PROFILE=release
25-
COPY substrate-node/ /tfchain
26-
COPY pallets/ /tfchain
25+
COPY . /tfchain
26+
27+
WORKDIR /tfchain/substrate-node
2728

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

41-
COPY --from=builder /tfchain/target/$PROFILE/tfchain /usr/local/bin
42-
COPY chainspecs /etc/chainspecs/
42+
COPY --from=builder /tfchain/substrate-node/target/$PROFILE/tfchain /usr/local/bin
43+
COPY --from=builder /tfchain/substrate-node/chainspecs /etc/chainspecs/
4344

4445

4546
# checks

0 commit comments

Comments
 (0)