airalab / robonomics

Robonomics node implementation for Polkadot ecosystem; Kusama parachain slot #2048 since January 2022
https://robonomics.subscan.io/
Apache License 2.0
217 stars 58 forks source link

Fix docker build script #325

Closed khssnv closed 1 year ago

khssnv commented 1 year ago

Due to TARGETOS being used in Dockerfile to obtain the robonomics binary from build context, the build script should pass it. Currently, it fails with an error following.

...
Step 13/18 : COPY $TARGETARCH/robonomics /usr/local/bin
COPY failed: file not found in build context or excluded by .dockerignore: stat robonomics: file does not exist

This PR adds passing TARGETOS to the docker build.

Also, the build script copies the robonomics binary to the build context, but cleanup fails due to its path is not the same as the copying path. This PR fixes it too.