blob: 312dc21df8e049b357f984d3a8faf6856e1842a8 [file] [log] [blame]
Adrià Vilanova Martíneze73997b2022-07-19 18:58:55 +02001FROM golang:latest as builder
2
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
16FROM alpine
17LABEL 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"]