blob: 9586a6aa0992e70c9d4c3f2d172e2933900af824 [file] [log] [blame]
Adrià Vilanova Martínez6318eab2022-07-19 20:18:25 +02001FROM golang:1.18 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
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"]