feat: Dockerfile

This commit is contained in:
Your Name 2024-12-11 17:52:14 +01:00
parent 7b44ee30d6
commit f024f30cb8
No known key found for this signature in database
GPG key ID: DFCFEAAFB20EFB69
2 changed files with 16 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM docker.io/library/rust:alpine AS BUILDER
WORKDIR /src
RUN apk update && apk add cmake build-base
COPY src /src/src
COPY crates /src/crates
COPY Cargo.toml Cargo.lock /src
RUN cargo build -r
FROM scratch AS RUNNER
COPY --from=BUILDER /src/target/release/minedmap /minedmap
ENTRYPOINT [ "/minedmap" ]

2
Dockerfile.viewer Normal file
View file

@ -0,0 +1,2 @@
FROM docker.io/library/nginx:alpine
COPY viewer /usr/share/nginx/html