Fix dockerfile go build command
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user