blob: 8ef60dc8989895386d66c498dba50db35e0b6a85 [file] [log] [blame]
FROM golang:1.18@sha256:50c889275d26f816b5314fc99f55425fa76b18fcaf16af255f5d57f09e1f48da 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@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48
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"]