Renovate bot | b5bf5e8 | 2023-12-30 00:07:28 +0000 | [diff] [blame] | 1 | FROM golang:1.18@sha256:50c889275d26f816b5314fc99f55425fa76b18fcaf16af255f5d57f09e1f48da as builder |
Adrià Vilanova Martínez | e73997b | 2022-07-19 18:58:55 +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/vulnzybot |
| 12 | COPY . /go/src/gomodules.avm99963.com/vulnzybot |
| 13 | |
| 14 | RUN go install gomodules.avm99963.com/vulnzybot |
| 15 | |
Renovate bot | b5bf5e8 | 2023-12-30 00:07:28 +0000 | [diff] [blame] | 16 | FROM alpine@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48 |
Adrià Vilanova Martínez | e73997b | 2022-07-19 18:58:55 +0200 | [diff] [blame] | 17 | LABEL maintainer "me@avm99963.com" |
| 18 | |
| 19 | COPY crontab /etc/crontabs/root |
| 20 | RUN chmod 0644 /etc/crontabs/root |
| 21 | RUN chown root:root /etc/crontabs/root |
| 22 | |
| 23 | COPY --from=builder /go/bin/vulnzybot / |
| 24 | RUN chmod +x /vulnzybot |
| 25 | |
| 26 | CMD ["crond", "-f", "-d", "8"] |