drone-gitea-release/Dockerfile
RaviAnand Mohabir a56b978462
Some checks failed
continuous-integration/drone/push Build is failing
fix: 🐛 add git to Dockerfile
2024-06-25 16:05:44 +02:00

23 lines
476 B
Docker

FROM golang:1.22 as builder
WORKDIR /drone-gitea-release
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o drone-gitea-release
FROM alpine:3.6 as alpine
RUN apk add -U --no-cache ca-certificates
FROM alpine:3.6
ENV GODEBUG netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
RUN apk add --no-cache git
COPY --from=builder /drone-gitea-release/drone-gitea-release /bin/
ENTRYPOINT ["/bin/drone-gitea-release"]