-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.test
32 lines (23 loc) · 807 Bytes
/
Dockerfile.test
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
FROM hashicorp/terraform AS terraform
FROM golang:1.22-alpine
# Copy Terraform binary from the terraform stage
COPY --from=terraform /bin/terraform /usr/local/bin/terraform
COPY ssl_cert/* /usr/local/share/ca-certificates/
RUN update-ca-certificates
# Install necessary packages
RUN apk add --no-cache curl \
gcc \
git \
bash \
mercurial \
musl-dev \
jq \
libc-dev \
openssl
RUN go install github.com/jstemmer/go-junit-report@latest && \
go install github.com/axw/gocov/gocov@latest && \
go install github.com/AlekSi/gocov-xml@latest && \
go install github.com/wadey/gocovmerge@latest
WORKDIR /terraform-provider-cybr-sh
CMD ["./bin/test-entrypoint.sh"]
EXPOSE 8080