2023-08-10 13:41:23 +00:00
|
|
|
FROM docker.io/library/golang:1.21.0-alpine3.18 AS build
|
2023-07-19 19:44:02 +00:00
|
|
|
|
|
|
|
RUN apk add git make
|
|
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
ADD ./ /workspace
|
|
|
|
|
|
|
|
RUN make install \
|
|
|
|
DESTDIR=/cache \
|
|
|
|
PREFIX=/usr \
|
|
|
|
VERSION=${VERSION}
|
|
|
|
|
2023-08-07 21:42:48 +00:00
|
|
|
FROM docker.io/library/alpine:3.18.3
|
2023-07-19 19:44:02 +00:00
|
|
|
|
|
|
|
COPY --from=build /cache /
|
|
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
VOLUME [ "/workspace" ]
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/dcmerge" ]
|