You've already forked civ
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
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" ]
|
Reference in New Issue
Block a user