Merge pull request #68 from neocturne/docker

docker: set ARG after apk add
This commit is contained in:
Matthias Schiffer 2025-02-22 11:34:55 +01:00 committed by GitHub
commit 6e2f2697fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,10 +1,10 @@
FROM docker.io/library/alpine:latest AS builder FROM docker.io/library/alpine:latest AS builder
ARG MINEDMAP_VERSION
WORKDIR /build WORKDIR /build
RUN apk add --no-cache build-base cmake cargo RUN apk add --no-cache build-base cmake cargo
ARG MINEDMAP_VERSION
COPY . . COPY . .
RUN cargo build -r RUN cargo build -r
RUN strip target/release/minedmap RUN strip target/release/minedmap