Compare commits

...

2 commits

Author SHA1 Message Date
7ccd5688cc Remove prometheus from dockerfile 2021-11-08 13:36:02 +01:00
ajila AG
cbf99996d8 update compatibility with go 2021-10-26 13:55:30 +02:00

View file

@ -25,9 +25,8 @@ RUN freshclam --quiet --no-dns
# Build go package # Build go package
ADD . /go/src/clamav-rest/ ADD . /go/src/clamav-rest/
RUN go get github.com/dutchcoders/go-clamd RUN go get github.com/dutchcoders/go-clamd
RUN go get github.com/prometheus/client_golang/prometheus/promhttp
ADD ./server.* /etc/ssl/clamav-rest/ ADD ./server.* /etc/ssl/clamav-rest/
RUN cd /go/src/clamav-rest && go build -v RUN cd /go/src/clamav-rest && go mod init && go mod vendor && go build -v
COPY entrypoint.sh /usr/bin/ COPY entrypoint.sh /usr/bin/
RUN mv /go/src/clamav-rest/clamav-rest /usr/bin/ && rm -Rf /go/src/clamav-rest RUN mv /go/src/clamav-rest/clamav-rest /usr/bin/ && rm -Rf /go/src/clamav-rest
@ -48,6 +47,6 @@ ENV MAX_PARTITIONS=50
ENV MAX_ICONSPE=100 ENV MAX_ICONSPE=100
ENV PCRE_MATCHLIMIT=100000 ENV PCRE_MATCHLIMIT=100000
ENV PCRE_RECMATCHLIMIT=2000 ENV PCRE_RECMATCHLIMIT=2000
ENV SIGNATURE_CHECKS=24 ENV SIGNATURE_CHECKS=2
ENTRYPOINT [ "entrypoint.sh" ] ENTRYPOINT [ "entrypoint.sh" ]