Renovate bot | 6b5562d | 2023-12-30 00:04:19 +0000 | [diff] [blame^] | 1 | FROM golang:latest@sha256:672a2286da3ee7a854c3e0a56e0838918d0dbb1c18652992930293312de898a6 as builder |
Adrià Vilanova Martínez | 250457f | 2021-08-08 01:23:14 +0200 | [diff] [blame] | 2 | |
| 3 | ENV CGO_ENABLED=0 |
| 4 | |
| 5 | ENV GO111MODULE=on |
| 6 | ENV GOPROXY=https://proxy.golang.org |
| 7 | |
| 8 | RUN mkdir /gocache |
| 9 | ENV GOCACHE /gocache |
| 10 | |
| 11 | WORKDIR /go/src/gomodules.avm99963.com/gitwatcher |
| 12 | COPY . /go/src/gomodules.avm99963.com/gitwatcher |
| 13 | |
| 14 | # Optimization for iterative docker build speed, not necessary for correctness: |
| 15 | |
| 16 | RUN go install gomodules.avm99963.com/gitwatcher |
| 17 | |
Renovate bot | 6b5562d | 2023-12-30 00:04:19 +0000 | [diff] [blame^] | 18 | FROM alpine@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48 |
Adrià Vilanova Martínez | 250457f | 2021-08-08 01:23:14 +0200 | [diff] [blame] | 19 | LABEL maintainer "me@avm99963.com" |
| 20 | |
| 21 | RUN apk add --no-cache tini |
| 22 | COPY --from=builder /go/bin/gitwatcher / |
| 23 | ENTRYPOINT ["/sbin/tini", "--", "/gitwatcher"] |