parent
f15526fe9e
commit
dbad1e4725
@ -25,13 +25,13 @@ RUN freshclam --foreground -v
|
||||
# Deal with Golang installation
|
||||
|
||||
RUN apt update -y && apt upgrade -y && apt install -y \
|
||||
golang
|
||||
golang git
|
||||
|
||||
RUN mkdir -p /work/malscan
|
||||
COPY . /work/malscan
|
||||
|
||||
RUN cd /work/malscan && \
|
||||
CGO_LDFLAGS='-lclamav' go build malscan.go && \
|
||||
CGO_LDFLAGS='-lclamav' go build . && \
|
||||
cp malscan /usr/local/bin/malscan
|
||||
|
||||
# Entrypoint
|
||||
|
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module git.cyber.gent/friedkiwi/malscan
|
||||
|
||||
go 1.18
|
||||
|
||||
require git.cyber.gent/friedkiwi/go-clamav v0.7.1 // indirect
|
||||
require git.cyber.gent/friedkiwi/go-clamav v0.7.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user