-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: install gcc before yq (fix i386 build) (#1965)
- Loading branch information
Showing
2 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ ARG GOVERSION=1.19 | |
|
||
FROM golang:${GOVERSION}-alpine AS build | ||
|
||
RUN go install github.com/mikefarah/yq/[email protected] | ||
|
||
WORKDIR /go/src/crowdsec | ||
|
||
COPY . . | ||
|
@@ -19,7 +17,8 @@ RUN apk add --no-cache git gcc libc-dev make bash gettext binutils-gold coreutil | |
cd - >/dev/null && \ | ||
cscli hub update && \ | ||
cscli collections install crowdsecurity/linux && \ | ||
cscli parsers install crowdsecurity/whitelists | ||
cscli parsers install crowdsecurity/whitelists && \ | ||
go install github.com/mikefarah/yq/[email protected] | ||
|
||
FROM alpine:latest as build-slim | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ ARG GOVERSION=1.19 | |
|
||
FROM golang:${GOVERSION}-bullseye AS build | ||
|
||
RUN go install github.com/mikefarah/yq/[email protected] | ||
|
||
WORKDIR /go/src/crowdsec | ||
|
||
COPY . . | ||
|
@@ -23,7 +21,8 @@ RUN apt-get update && \ | |
cd - >/dev/null && \ | ||
cscli hub update && \ | ||
cscli collections install crowdsecurity/linux && \ | ||
cscli parsers install crowdsecurity/whitelists | ||
cscli parsers install crowdsecurity/whitelists && \ | ||
go install github.com/mikefarah/yq/[email protected] | ||
|
||
FROM debian:bullseye-slim as build-slim | ||
|
||
|