Fix dockerfile go build command
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Yvan Janssens 2023-04-07 12:26:05 +02:00
parent f15526fe9e
commit dbad1e4725
2 changed files with 3 additions and 3 deletions

View File

@ -25,13 +25,13 @@ RUN freshclam --foreground -v
# Deal with Golang installation # Deal with Golang installation
RUN apt update -y && apt upgrade -y && apt install -y \ RUN apt update -y && apt upgrade -y && apt install -y \
golang golang git
RUN mkdir -p /work/malscan RUN mkdir -p /work/malscan
COPY . /work/malscan COPY . /work/malscan
RUN cd /work/malscan && \ RUN cd /work/malscan && \
CGO_LDFLAGS='-lclamav' go build malscan.go && \ CGO_LDFLAGS='-lclamav' go build . && \
cp malscan /usr/local/bin/malscan cp malscan /usr/local/bin/malscan
# Entrypoint # Entrypoint

2
go.mod
View File

@ -2,4 +2,4 @@ module git.cyber.gent/friedkiwi/malscan
go 1.18 go 1.18
require git.cyber.gent/friedkiwi/go-clamav v0.7.1 // indirect require git.cyber.gent/friedkiwi/go-clamav v0.7.1