civ/Dockerfile
CSRBot 3f4f751343
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
chore(deps): update docker.io/library/alpine docker tag to v3.21
2025-01-17 02:05:23 +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.21
COPY --from=build /civ /
ENTRYPOINT [ "/usr/bin/civ" ]