civ/Dockerfile
Markus Pesch b82578fbf0
All checks were successful
continuous-integration/drone/push Build is passing
Initial Commit
2022-01-26 16:34:42 +01:00

19 lines
332 B
Docker

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
FROM docker.io/library/alpine:3.15
COPY --from=build /civ /
ENTRYPOINT [ "/usr/bin/civ" ]