/
Dockerfile.wolfi-ci
36 lines (25 loc) 路 787 Bytes
/
Dockerfile.wolfi-ci
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
FROM cgr.dev/chainguard/go as builder
ARG ARCH=linux64
# Set Environment Variables
SHELL ["/bin/bash", "-c"]
ENV HOME /app
ENV CGO_ENABLED 0
WORKDIR /app
# Build Application
COPY . .
RUN NO_DIRTY=true make build
RUN chmod +x /app/build/infracost
# Application
FROM cgr.dev/chainguard/wolfi-base as app
# Tools needed for running diffs in CI integrations
RUN apk --no-cache add bash curl git nodejs openssh-client jq
# Install the latest compost version
RUN npm install -g @infracost/compost
WORKDIR /root/
# Scripts are used by CI integrations and other use-cases
COPY scripts/ci/comment.sh /scripts/ci/
COPY --from=builder /app/build/infracost /usr/bin/
ENV INFRACOST_CI_IMAGE=true
ENV INFRACOST_SKIP_UPDATE_CHECK='true'
ENV INFRACOST_LOG_LEVEL=info
ENTRYPOINT ["infracost"]