Dockerize

Closes #19
This commit is contained in:
Joseph Cooper
2024-06-16 17:46:18 +01:00
parent ec55e8d851
commit 0e48f17232
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
target
+20
View File
@@ -0,0 +1,20 @@
## Build stage
FROM rust:1.79-alpine3.20 as builder
RUN rustup target add x86_64-unknown-linux-musl
RUN apk add musl-dev
WORKDIR /jnv
COPY . /jnv
RUN cargo build --target=x86_64-unknown-linux-musl --release
## Final image
FROM builder
COPY --from=builder /jnv/target/x86_64-unknown-linux-musl/release/jnv /bin/jnv
ENTRYPOINT ["/bin/jnv"]