2022-01-26 10:15:28 +00:00
|
|
|
FROM docker.io/library/golang:1.17-alpine3.13 AS build
|
|
|
|
|
|
|
|
ARG VERSION=latest
|
|
|
|
|
|
|
|
COPY . /workspace
|
|
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
|
|
RUN set -ex && \
|
|
|
|
apk update && \
|
|
|
|
apk add git make && \
|
|
|
|
make install VERSION=${VERSION} DESTDIR=/civ PREFIX=/usr
|
|
|
|
|
2024-05-22 19:03:25 +00:00
|
|
|
FROM docker.io/library/alpine:3.20
|
2022-01-26 10:15:28 +00:00
|
|
|
|
|
|
|
COPY --from=build /civ /
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/civ" ]
|