diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fa3627c --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/Dockerfile.viewer b/Dockerfile.viewer new file mode 100644 index 0000000..82d50bb --- /dev/null +++ b/Dockerfile.viewer @@ -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