Skip to content

Commit

Permalink
chore: Add basic dockerfile for running node
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin committed Mar 8, 2024
1 parent debe5fe commit 8f210a4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.env
/.dockerignore
/.git*
/ci
/Dockerfile
/target
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM rust:1.74 AS builder

WORKDIR /build

RUN apt-get update && \
apt-get install -y protobuf-compiler && \
apt-get clean

RUN cargo install [email protected] --locked

COPY . .

RUN wasm-pack build --release --target web node-wasm

RUN cargo build --release --bin lumina


FROM debian:bookworm-slim

COPY --from=builder /build/target/release/lumina /usr/local/bin/lumina

ENTRYPOINT ["lumina"]
CMD ["node"]

0 comments on commit 8f210a4

Please sign in to comment.