civ/Dockerfile
CSRBot 1304b7f461
Some checks reported errors
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build was killed
chore(deps): update docker.io/library/alpine docker tag to v3.20
2024-05-30 16:01:32 +00: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.20
COPY --from=build /civ /
ENTRYPOINT [ "/usr/bin/civ" ]