Docker container for github.com/geofffranks/spruce
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
581 B

ARG ALPINE_REPO=containers.dev.maio.me/library/alpine
ARG ALPINE_VERSION=v3.13
ARG GOLANG_REPO=containers.dev.maio.me/library/golang
ARG GOLANG_VERSION=1.15.6
ARG SPRUCE_VERSION=v0.5.2
#
# --- BUILD
#
FROM ${GOLANG_REPO}:${GOLANG_VERSION} as build
WORKDIR /source
RUN apk add git
RUN go get -d github.com/geofffranks/spruce && \
cd ${GOPATH:-/go}/src/github.com/geofffranks/spruce && \
git checkout ${SPRUCE_VERSION} && \
go install ./...
#
# --- APP
#
FROM ${ALPINE_REPO}:${ALPINE_VERSION}
COPY --from=build /go/bin/spruce /bin/spruce
ENTRYPOINT ["/bin/spruce"]