20 lines
347 B
Docker
20 lines
347 B
Docker
FROM docker.io/library/golang:1.22.5-alpine3.19 AS build
|
|
|
|
RUN apk add git make
|
|
|
|
WORKDIR /workspace
|
|
ADD ./ /workspace
|
|
|
|
RUN make install \
|
|
DESTDIR=/cache \
|
|
PREFIX=/usr \
|
|
VERSION=${VERSION}
|
|
|
|
FROM docker.io/library/alpine:3.20
|
|
|
|
COPY --from=build /cache /
|
|
|
|
WORKDIR /workspace
|
|
VOLUME [ "/workspace" ]
|
|
|
|
ENTRYPOINT [ "/usr/bin/dcmerge" ] |