forked from jaegertracing/jaeger-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.asserts
31 lines (24 loc) · 939 Bytes
/
Dockerfile.asserts
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
# Build the manager binary
FROM golang:1.17 as builder
WORKDIR /workspace
# Download the dependencies. Doing this, if there are changes in the source
# code but not in the dependencies to download, the tool to build the image will
# use the cached dependencies
COPY hack/install/install-dependencies.sh hack/install/
COPY hack/install/install-utils.sh hack/install/
COPY go.mod .
COPY go.sum .
RUN ./hack/install/install-dependencies.sh
COPY tests tests
ENV CGO_ENABLED=0
# Build
RUN go build -o ./reporter -a ./tests/assert-jobs/reporter/main.go
RUN go build -o ./query -a ./tests/assert-jobs/query/main.go
RUN go build -o ./index -a ./tests/assert-jobs/index/main.go
# Use the curl container image to ensure we have curl installed. Also, it is a
# minimal container image
FROM curlimages/curl:7.81.0
WORKDIR /
COPY --from=builder /workspace/reporter .
COPY --from=builder /workspace/query .
COPY --from=builder /workspace/index .