-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.steampipe
68 lines (42 loc) · 2.38 KB
/
Dockerfile.steampipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM golang:1.23-bookworm AS build-steampipe
WORKDIR /app/code
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates
RUN git clone https://github.com/deepfence/steampipe --branch v0.23.x --depth 1 \
&& cd steampipe \
&& go build -o steampipe
FROM golang:1.23-bookworm AS build-steampipe-plugin-aws
WORKDIR /app/code
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates
RUN git clone https://github.com/deepfence/steampipe-plugin-aws --branch v0.144.0 --depth 1 \
&& cd steampipe-plugin-aws \
&& go build -o steampipe-plugin-aws.plugin *.go
FROM golang:1.23-bookworm AS build-steampipe-plugin-gcp
WORKDIR /app/code
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates
RUN git clone https://github.com/deepfence/steampipe-plugin-gcp --branch v0.54.1 --depth 1 \
&& cd steampipe-plugin-gcp \
&& go build -o steampipe-plugin-gcp.plugin *.go
FROM golang:1.23-bookworm AS build-steampipe-plugin-azure
WORKDIR /app/code
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates
RUN git clone https://github.com/deepfence/steampipe-plugin-azure --branch v0.61.0 --depth 1 \
&& cd steampipe-plugin-azure \
&& go build -o steampipe-plugin-azure.plugin *.go
FROM golang:1.23-bookworm AS build-steampipe-plugin-azuread
WORKDIR /app/code
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates
RUN git clone https://github.com/deepfence/steampipe-plugin-azuread --branch v0.16.0 --depth 1 \
&& cd steampipe-plugin-azuread \
&& go build -o steampipe-plugin-azuread.plugin *.go
FROM debian:bookworm-slim
WORKDIR /usr/local/bin
COPY --from=build-steampipe /app/code/steampipe/steampipe /usr/local/bin/steampipe
COPY --from=build-steampipe-plugin-aws /app/code/steampipe-plugin-aws/steampipe-plugin-aws.plugin /usr/local/bin/steampipe-plugin-aws.plugin
COPY --from=build-steampipe-plugin-gcp /app/code/steampipe-plugin-gcp/steampipe-plugin-gcp.plugin /usr/local/bin/steampipe-plugin-gcp.plugin
COPY --from=build-steampipe-plugin-azure /app/code/steampipe-plugin-azure/steampipe-plugin-azure.plugin /usr/local/bin/steampipe-plugin-azure.plugin
COPY --from=build-steampipe-plugin-azuread /app/code/steampipe-plugin-azuread/steampipe-plugin-azuread.plugin /usr/local/bin/steampipe-plugin-azuread.plugin