blob: e86499b7e4a4b8e987fae4db077f671af2ff35f0 [file] [log] [blame]
Renovate bot6b5562d2023-12-30 00:04:19 +00001FROM golang:latest@sha256:672a2286da3ee7a854c3e0a56e0838918d0dbb1c18652992930293312de898a6 as builder
Adrià Vilanova Martínez250457f2021-08-08 01:23:14 +02002
3ENV CGO_ENABLED=0
4
5ENV GO111MODULE=on
6ENV GOPROXY=https://proxy.golang.org
7
8RUN mkdir /gocache
9ENV GOCACHE /gocache
10
11WORKDIR /go/src/gomodules.avm99963.com/gitwatcher
12COPY . /go/src/gomodules.avm99963.com/gitwatcher
13
14# Optimization for iterative docker build speed, not necessary for correctness:
15
16RUN go install gomodules.avm99963.com/gitwatcher
17
Renovate bot6b5562d2023-12-30 00:04:19 +000018FROM alpine@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48
Adrià Vilanova Martínez250457f2021-08-08 01:23:14 +020019LABEL maintainer "me@avm99963.com"
20
21RUN apk add --no-cache tini
22COPY --from=builder /go/bin/gitwatcher /
23ENTRYPOINT ["/sbin/tini", "--", "/gitwatcher"]