You've already forked civ
feat: use goreleaser
All checks were successful
Markdown linter / markdown-lint (push) Successful in 12s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 14s
Golang Tests / unittest (push) Successful in 3m34s
Release / release (push) Successful in 8m47s
Release / sync-to-hub-docker-io (push) Successful in 55s
All checks were successful
Markdown linter / markdown-lint (push) Successful in 12s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 14s
Golang Tests / unittest (push) Successful in 3m34s
Release / release (push) Successful in 8m47s
Release / sync-to-hub-docker-io (push) Successful in 55s
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,18 +1,5 @@
|
||||
FROM docker.io/library/golang:1.17-alpine3.13 AS build
|
||||
FROM scratch AS build
|
||||
|
||||
ARG VERSION=latest
|
||||
COPY civ-* /usr/bin/civ
|
||||
|
||||
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" ]
|
||||
ENTRYPOINT [ "/usr/bin/civ" ]
|
Reference in New Issue
Block a user