mirror of
https://github.com/falcosecurity/falco.git
synced 2026-01-29 21:48:32 +00:00
16 lines
507 B
Docker
16 lines
507 B
Docker
FROM golang:alpine AS build
|
|
|
|
RUN apk --no-cache add build-base git bzr mercurial gcc ca-certificates
|
|
|
|
COPY ./pkg /src/pkg/
|
|
COPY ./cmd /src/cmd/
|
|
COPY ./go.mod ./go.sum /src/
|
|
|
|
RUN cd /src && CGO_ENABLED=0 GOOS=linux go build -a -o httploader -ldflags '-extldflags "-static"' cmd/httploader/main.go
|
|
|
|
FROM scratch
|
|
LABEL maintainer="opensource@sysdig.com"
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=build /src/httploader /httploader
|
|
CMD [ "/httploader" ]
|