Adjust import of dutchcoders/go-clamd dependency
This commit is contained in:
parent
d10c4fd885
commit
4b52934656
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,9 @@ FROM golang:alpine
|
||||||
# Update
|
# Update
|
||||||
RUN apk update upgrade;
|
RUN apk update upgrade;
|
||||||
|
|
||||||
|
# Install git
|
||||||
|
RUN apk add git
|
||||||
|
|
||||||
# Set timezone to Europe/Zurich
|
# Set timezone to Europe/Zurich
|
||||||
RUN apk add tzdata
|
RUN apk add tzdata
|
||||||
RUN ln -s /usr/share/zoneinfo/Europe/Zurich /etc/localtime
|
RUN ln -s /usr/share/zoneinfo/Europe/Zurich /etc/localtime
|
||||||
|
@ -21,6 +24,7 @@ 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
|
||||||
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 build -v
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue