diff --git a/Dockerfile b/Dockerfile index be498f7..c512337 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,10 @@ WORKDIR /opt ARG VERSION=polkadot-stable2409-2 RUN git clone https://github.com/paritytech/polkadot-sdk.git -b $VERSION --depth 1 WORKDIR /opt/polkadot-sdk -RUN cargo build --locked --release --package polkadot +RUN cargo build --locked --release \ + --bin polkadot \ + --bin polkadot-execute-worker \ + --bin polkadot-prepare-worker ################## # --- runner --- # @@ -27,10 +30,8 @@ RUN addgroup --gid 65532 nonroot \ && adduser --system --uid 65532 --gid 65532 --home /home/nonroot nonroot COPY --from=builder /opt/polkadot-sdk/target/release/polkadot /usr/local/bin/polkadot -# COPY --from=builder /opt/polkadot-sdk/target/release/polkadot-execute-worker /usr/local/bin/polkadot-execute-worker -# COPY --from=builder /opt/polkadot-sdk/target/release/polkadot-parachain /usr/local/bin/polkadot-parachain -# COPY --from=builder /opt/polkadot-sdk/target/release/polkadot-prepare-worker /usr/local/bin/polkadot-prepare-worker -# COPY --from=builder /opt/polkadot-sdk/target/release/polkadot-substrate-node /usr/local/bin/polkadot-substrate-node +COPY --from=builder /opt/polkadot-sdk/target/release/polkadot-execute-worker /usr/local/bin/polkadot-execute-worker +COPY --from=builder /opt/polkadot-sdk/target/release/polkadot-prepare-worker /usr/local/bin/polkadot-prepare-worker USER 65532