mirror of
https://gitea.com/gitea/tea
synced 2024-11-23 00:12:05 +01:00
use chainguard images for docker
This commit is contained in:
parent
33442fd05f
commit
32b9f5e836
29
Dockerfile
29
Dockerfile
@ -1,25 +1,10 @@
|
|||||||
ARG GOVERSION="1.16.2"
|
FROM cgr.dev/chainguard/go:latest AS buildenv
|
||||||
|
COPY . /build/
|
||||||
|
WORKDIR /build
|
||||||
|
RUN make clean build STATIC=true
|
||||||
|
|
||||||
FROM golang:${GOVERSION}-alpine AS buildenv
|
FROM cgr.dev/chainguard/static:latest
|
||||||
|
COPY --from=buildenv /build/tea /tea
|
||||||
ARG GOOS="linux"
|
VOLUME [ "/app" ]
|
||||||
|
|
||||||
COPY . $GOPATH/src/
|
|
||||||
WORKDIR $GOPATH/src
|
|
||||||
|
|
||||||
RUN apk add --quiet --no-cache \
|
|
||||||
build-base \
|
|
||||||
make \
|
|
||||||
git && \
|
|
||||||
make clean build STATIC=true
|
|
||||||
|
|
||||||
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"
|
ENV HOME="/app"
|
||||||
ENTRYPOINT ["/tea"]
|
ENTRYPOINT ["/tea"]
|
||||||
|
Loading…
Reference in New Issue
Block a user