Skip to content

Commit

Permalink
Add Dockerfiles (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
kekrs authored Dec 16, 2024
1 parent 7b44ee3 commit 2156bff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM docker.io/library/rust:alpine AS BUILDER

WORKDIR /build
RUN apk update && apk add cmake build-base

COPY src /build/src
COPY crates /build/crates
COPY Cargo.toml Cargo.lock /build
RUN cargo build -r

FROM scratch AS RUNNER

COPY --from=BUILDER /build/target/release/minedmap /minedmap
ENTRYPOINT [ "/minedmap" ]
3 changes: 3 additions & 0 deletions Dockerfile.viewer
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM docker.io/library/nginx:alpine
COPY viewer /usr/share/nginx/html
# datadir should be mounted to: /usr/share/nginx/html/data

0 comments on commit 2156bff

Please sign in to comment.