blob: 8ef60dc8989895386d66c498dba50db35e0b6a85 [file] [log] [blame]
Renovate botb5bf5e82023-12-30 00:07:28 +00001FROM golang:1.18@sha256:50c889275d26f816b5314fc99f55425fa76b18fcaf16af255f5d57f09e1f48da as builder
Adrià Vilanova Martíneze73997b2022-07-19 18:58:55 +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/vulnzybot
12COPY . /go/src/gomodules.avm99963.com/vulnzybot
13
14RUN go install gomodules.avm99963.com/vulnzybot
15
Renovate botb5bf5e82023-12-30 00:07:28 +000016FROM alpine@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48
Adrià Vilanova Martíneze73997b2022-07-19 18:58:55 +020017LABEL maintainer "me@avm99963.com"
18
19COPY crontab /etc/crontabs/root
20RUN chmod 0644 /etc/crontabs/root
21RUN chown root:root /etc/crontabs/root
22
23COPY --from=builder /go/bin/vulnzybot /
24RUN chmod +x /vulnzybot
25
26CMD ["crond", "-f", "-d", "8"]