-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Frank Bell <[email protected]>
- Loading branch information
1 parent
cec40bb
commit 024e331
Showing
2 changed files
with
22 additions
and
0 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,8 @@ | ||
.git | ||
**/target/ | ||
**/*.txt | ||
**/*.md | ||
/docker/ | ||
|
||
# dotfiles in the repo root | ||
/.* |
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,14 @@ | ||
# This file is sourced from https://github.com/paritytech/polkadot-sdk/blob/master/docker/dockerfiles/polkadot/polkadot_builder.Dockerfile | ||
FROM docker.io/paritytech/ci-linux:production as builder | ||
# Require the current commit hash to be provided as an argument | ||
ARG SUBSTRATE_CLI_GIT_COMMIT_HASH | ||
RUN test -n "$SUBSTRATE_CLI_GIT_COMMIT_HASH" || (echo "SUBSTRATE_CLI_GIT_COMMIT_HASH not set, provide via --build-arg SUBSTRATE_CLI_GIT_COMMIT_HASH=(git rev-parse --short=11 HEAD)" && false) | ||
ENV SUBSTRATE_CLI_GIT_COMMIT_HASH=$SUBSTRATE_CLI_GIT_COMMIT_HASH | ||
WORKDIR /pop | ||
COPY . /pop | ||
RUN cargo build --release | ||
|
||
# Build image | ||
FROM debian:bullseye-slim as collator | ||
COPY --from=builder /pop/target/release/pop-node /usr/bin/pop-node | ||
CMD ["/usr/bin/pop-node"] |