blob: 9586a6aa0992e70c9d4c3f2d172e2933900af824 [file] [log] [blame]
FROM golang:1.18 as builder
ENV CGO_ENABLED=0
ENV GO111MODULE=on
ENV GOPROXY=https://proxy.golang.org
RUN mkdir /gocache
ENV GOCACHE /gocache
WORKDIR /go/src/gomodules.avm99963.com/vulnzybot
COPY . /go/src/gomodules.avm99963.com/vulnzybot
RUN go install gomodules.avm99963.com/vulnzybot
FROM alpine
LABEL maintainer "me@avm99963.com"
COPY crontab /etc/crontabs/root
RUN chmod 0644 /etc/crontabs/root
RUN chown root:root /etc/crontabs/root
COPY --from=builder /go/bin/vulnzybot /
RUN chmod +x /vulnzybot
CMD ["crond", "-f", "-d", "8"]