Skip to content

Commit

Permalink
build(up-parachain): add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 committed Mar 11, 2024
1 parent 54186bc commit 439db83
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.git
**/target/
**/*.txt
**/*.md
/docker/

# dotfiles in the repo root
/.*
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM rust as builder
RUN apt-get update && apt-get -y install cmake
WORKDIR /pop
COPY . /pop
RUN cargo build --release

# Build image
FROM rust:slim
RUN apt-get update && apt install -y openssl ca-certificates protobuf-compiler
COPY --from=builder /pop/target/release/pop /usr/bin/pop
CMD ["/usr/bin/pop"]

0 comments on commit 439db83

Please sign in to comment.