mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-25 03:51:36 +01:00
195bd2199c
as discussed with @noerw on Discord Co-authored-by: Tamás Gérczei <tamas@gerczei.eu> Reviewed-on: https://gitea.com/gitea/tea/pulls/350 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Norwin <noerw@noreply.gitea.io> Reviewed-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Tamás Gérczei <tgerczei@noreply.gitea.io> Co-committed-by: Tamás Gérczei <tgerczei@noreply.gitea.io>
26 lines
683 B
Docker
26 lines
683 B
Docker
ARG GOVERSION="1.16.2"
|
|
|
|
FROM golang:${GOVERSION}-alpine AS buildenv
|
|
|
|
ARG CGO_ENABLED="0"
|
|
ARG GOOS="linux"
|
|
|
|
COPY . $GOPATH/src/
|
|
WORKDIR $GOPATH/src
|
|
|
|
RUN apk add --quiet --no-cache \
|
|
make \
|
|
git && \
|
|
make build
|
|
|
|
FROM scratch
|
|
ARG VERSION="0.7.0"
|
|
LABEL org.opencontainers.image.title="tea - CLI for Gitea - git with a cup of tea"
|
|
LABEL org.opencontainers.image.description="A command line tool to interact with Gitea servers"
|
|
LABEL org.opencontainers.image.version="${VERSION}"
|
|
LABEL org.opencontainers.image.authors="Tamás Gérczei <tamas@gerczei.eu>"
|
|
LABEL org.opencontainers.image.vendor="The Gitea Authors"
|
|
COPY --from=buildenv /go/src/tea /
|
|
ENV HOME="/app"
|
|
ENTRYPOINT ["/tea"]
|