-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add comnd to readme to run parachain in container
- Loading branch information
1 parent
844d4a6
commit 9358a0f
Showing
2 changed files
with
30 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM docker.io/paritytech/ci-linux:production as builder | ||
|
||
WORKDIR /node | ||
COPY . . | ||
RUN cargo build --release | ||
|
||
FROM docker.io/library/ubuntu:22.04 | ||
|
||
# Copy the node binary from builder stage. | ||
COPY --from=builder /node/target/release/peaq-node /usr/local/bin | ||
COPY --from=builder /node/node/src/chain-specs/ /node/src/chain-specs | ||
|
||
|
||
RUN useradd -m -u 1000 -U -s /bin/sh -d /peaq peaq && \ | ||
mkdir -p /chain-data /peaq/.local/share && \ | ||
chown -R peaq:peaq /chain-data && \ | ||
ln -s /chain-data /peaq/.local/share/node && \ | ||
rm -rf /usr/bin /usr/sbin && \ | ||
# check if executable works in this container | ||
/usr/local/bin/peaq-node --version | ||
|
||
USER peaq | ||
|
||
EXPOSE 9933 30333 9944 9615 | ||
VOLUME ["/chain-data"] | ||
ENTRYPOINT ["/usr/local/bin/peaq-node"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters