From dbad1e4725bb49365b13007c4b6d1b48ef91e903 Mon Sep 17 00:00:00 2001 From: Yvan Janssens Date: Fri, 7 Apr 2023 12:26:05 +0200 Subject: [PATCH] Fix dockerfile go build command --- Dockerfile | 4 ++-- go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b54819c..fdcc892 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/go.mod b/go.mod index 4167515..1031acb 100644 --- a/go.mod +++ b/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